libbpf_common.h (f7c0bbf27ec699ec6462751f5e5450c38be4c980) libbpf_common.h (fb9a98e160f10555936e1c7041d4efda4954d1df)
1/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2
3/*
4 * Common user-facing libbpf helpers.
5 *
6 * Copyright (c) 2019 Facebook
7 */
8
9#ifndef __LIBBPF_LIBBPF_COMMON_H
10#define __LIBBPF_LIBBPF_COMMON_H
11
1/* SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause) */
2
3/*
4 * Common user-facing libbpf helpers.
5 *
6 * Copyright (c) 2019 Facebook
7 */
8
9#ifndef __LIBBPF_LIBBPF_COMMON_H
10#define __LIBBPF_LIBBPF_COMMON_H
11
12#include <string.h>
13
12#ifndef LIBBPF_API
13#define LIBBPF_API __attribute__((visibility("default")))
14#endif
15
16/* Helper macro to declare and initialize libbpf options struct
17 *
18 * This dance with uninitialized declaration, followed by memset to zero,
19 * followed by assignment using compound literal syntax is done to preserve

--- 19 unchanged lines hidden ---
14#ifndef LIBBPF_API
15#define LIBBPF_API __attribute__((visibility("default")))
16#endif
17
18/* Helper macro to declare and initialize libbpf options struct
19 *
20 * This dance with uninitialized declaration, followed by memset to zero,
21 * followed by assignment using compound literal syntax is done to preserve

--- 19 unchanged lines hidden ---