2 *------------------------------------------------------------------
5 * Copyright (c) 2013 Cisco and/or its affiliates.
6 * Licensed under the Apache License, Version 2.0 (the "License");
7 * you may not use this file except in compliance with the License.
8 * You may obtain a copy of the License at:
10 * http://www.apache.org/licenses/LICENSE-2.0
12 * Unless required by applicable law or agreed to in writing, software
13 * distributed under the License is distributed on an "AS IS" BASIS,
14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
15 * See the License for the specific language governing permissions and
16 * limitations under the License.
17 *------------------------------------------------------------------
20 #ifndef __included_cj_h__
21 #define __included_cj_h__
38 vlib_main_t *vlib_main;
41 void cj_log (u32 type, void *data0, void *data1);
44 * Supply in application main, so we can log from any library...
45 * Declare a weak reference in the library, off you go.
48 #define DECLARE_CJ_GLOBAL_LOG \
49 void cj_global_log (unsigned type, void * data0, void * data1) \
50 __attribute__ ((weak)); \
57 cj_global_log (unsigned type, void * data0, void * data1) \
64 #define CJ_GLOBAL_LOG_PROTOTYPE
66 cj_global_log (unsigned type, void *data0, void *data1)
67 __attribute__ ((weak));
71 #endif /* __included_cj_h__ */
74 * fd.io coding-style-patch-verification: ON
77 * eval: (c-set-style "gnu")