Add extern "C" decls to aalogparse.h for C++ usage of aalogparse

Signed-off-by: Ryan Lee <ryan.lee@canonical.com>
This commit is contained in:
Ryan Lee 2024-10-01 16:33:17 -07:00
parent e2c407c614
commit 3cb61b6b41

View file

@ -19,6 +19,10 @@
#ifndef __LIBAALOGPARSE_H_ #ifndef __LIBAALOGPARSE_H_
#define __LIBAALOGPARSE_H_ #define __LIBAALOGPARSE_H_
#ifdef __cplusplus
extern "C" {
#endif
#define AA_RECORD_EXEC_MMAP 1 #define AA_RECORD_EXEC_MMAP 1
#define AA_RECORD_READ 2 #define AA_RECORD_READ 2
#define AA_RECORD_WRITE 4 #define AA_RECORD_WRITE 4
@ -138,5 +142,9 @@ parse_record(const char *str);
void void
free_record(aa_log_record *record); free_record(aa_log_record *record);
#ifdef __cplusplus
}
#endif
#endif #endif