Files
aya-mirror/ci/headers/argp.h
root 5cfe609872 integration-test: add btf_maps libbpf compatibility tests
Add integration tests to verify that btf_maps generated with the
generalized btf_map_def macro are compatible with libbpf's bpf_map_def.

Also add CI infrastructure for macOS cross-compilation to Linux musl,
including stub headers and autoconf cache variables for libbpf-sys
vendored dependencies.
2026-01-27 14:49:22 +00:00

43 lines
776 B
C

#ifndef AYA_CI_STUB_ARGP_H
#define AYA_CI_STUB_ARGP_H
#include <stdio.h>
typedef int error_t;
struct argp_option {
const char *name;
int key;
const char *arg;
int flags;
const char *doc;
int group;
};
struct argp_state;
typedef error_t (*argp_parser_t)(int key, char *arg, struct argp_state *state);
struct argp {
const struct argp_option *options;
argp_parser_t parser;
const char *args_doc;
const char *doc;
const void *children;
void *help_filter;
const char *argp_domain;
};
struct argp_state {
const char *name;
};
#define OPTION_ARG_OPTIONAL 0x1
#define ARGP_HELP_SEE 0x40
#define ARGP_ERR_UNKNOWN 1
int argp_help(const struct argp *argp, FILE *stream, unsigned int flags,
char *name);
#endif /* AYA_CI_STUB_ARGP_H */