blob: a1311e864b359c76b8b9741f02a8102791c6b424 [file] [log] [blame]
Ole Troan233e4682019-05-16 15:01:34 +02001/*
2 * Copyright (c) 2019 Cisco and/or its affiliates.
3 * Licensed under the Apache License, Version 2.0 (the "License");
4 * you may not use this file except in compliance with the License.
5 * You may obtain a copy of the License at:
6 *
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *
9 * Unless required by applicable law or agreed to in writing, software
10 * distributed under the License is distributed on an "AS IS" BASIS,
11 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 * See the License for the specific language governing permissions and
13 * limitations under the License.
14 */
15
16/*
17 * NOTE: Only include this file from external components that require
18 * a loose coupling to the stats component.
19 */
20
21#ifndef included_stat_weak_inlines_h
22#define included_stat_weak_inlines_h
23void *vlib_stats_push_heap (void *) __attribute__ ((weak));
24void *
25vlib_stats_push_heap (void *unused)
26{
27 return 0;
28};
29
30void vlib_stats_pop_heap (void *, void *, u32, int) __attribute__ ((weak));
31void
32vlib_stats_pop_heap (void *notused, void *notused2, u32 i, int type)
33{
34};
Ole Troan92e30822019-06-16 12:33:51 +020035void vlib_stats_register_error_index (void *, u8 *, u64 *, u64)
Ole Troan233e4682019-05-16 15:01:34 +020036 __attribute__ ((weak));
37void
Ole Troan92e30822019-06-16 12:33:51 +020038vlib_stats_register_error_index (void * notused, u8 * notused2, u64 * notused3, u64 notused4)
Ole Troan233e4682019-05-16 15:01:34 +020039{
40};
41
42void vlib_stats_pop_heap2 (void *, u32, void *, int) __attribute__ ((weak));
43void
44vlib_stats_pop_heap2 (void *notused, u32 notused2, void *notused3,
45 int notused4)
46{
47};
48
49void vlib_stat_segment_lock (void) __attribute__ ((weak));
50void
51vlib_stat_segment_lock (void)
52{
53}
54
55void vlib_stat_segment_unlock (void) __attribute__ ((weak));
56void
57vlib_stat_segment_unlock (void)
58{
59}
Ole Troana568a192020-04-21 17:54:41 +020060void vlib_stats_delete_cm (void *) __attribute__ ((weak));
61void
62vlib_stats_delete_cm (void *notused)
63{
64}
Ole Troan233e4682019-05-16 15:01:34 +020065
66#endif