#include <stdbool.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @brief Check if running on emulator
*
*/
bool libsys_is_container(void);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __LIBCOMMON_COMMON_H__ */
#include <stdarg.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/**
* @brief Open file, read and close
*
*/
int libsys_parse_cmdline_scanf(const char *format, ...);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* __LIBCOMMON_FILE_H__ */
#define MATCH(a, b) (!strncmp(a, b, strlen(a)))
#define SET_CONF(a, b) (a = (b > 0.0 ? b : a))
+#ifdef __cplusplus
+extern "C" {
+#endif
+
struct parse_result {
char *section;
union {
* @return 0 on success, negative if failed
*/
int libsys_config_parse_by_section(const char *file_name, int cb(const struct parse_result *, void *), void *user_data);
+
+#ifdef __cplusplus
+}
+#endif
+
#endif
#include <glib.h>
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#define SYS_G_LIST_PREPEND(a, b) \
a = g_list_prepend(a, (gpointer)b)
#define SYS_G_LIST_APPEND(a, b) \
#define SYS_G_LIST_NEXT(a) \
g_list_next(a)
+#ifdef __cplusplus
+}
+#endif
+
#endif
#ifndef __DBUS_SYSTEM_IFACE_H__
#define __DBUS_SYSTEM_IFACE_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Template
*
/* End of the Experimental for Specific device */
/***********************************************/
+#ifdef __cplusplus
+}
+#endif
#endif
#include "dbus-iface-system.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
const unsigned char *data;
int size;
int check_systemd_active (void);
-
+#ifdef __cplusplus
+}
+#endif
#endif
#ifndef __LOG_MACRO_H__
#define __LOG_MACRO_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef ENABLE_DLOG
#include <dlog.h>
#define _D(fmt, arg...) \
#define _SW(...) do { } while (0)
#define _SE(...) do { } while (0)
#endif
+
+#ifdef __cplusplus
+}
#endif
+
+#endif /* __LOG_MACRO_H__ */
#ifndef __LOG_H__
#define __LOG_H__
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef ENABLE_LIBDEVICED_DLOG
#define ENABLE_DLOG
#endif
#define LOG_TAG "LIBSYSCOMMON"
#include "shared/log-macro.h"
+#ifdef __cplusplus
+}
#endif
+
+#endif /* __LOG_H__ */