claugeas/main.h

33 lines
727 B
C
Raw Normal View History

2022-11-04 03:15:28 +03:00
#include <string>
#include "iostream"
#include "augeas.h"
#include "map"
#include <sys/stat.h>
#include "include/augSettings.h"
2022-11-03 22:30:21 +03:00
#if defined(_WIN32)
2022-11-04 03:15:28 +03:00
#define CLAPI __declspec(dllexport)
2022-11-03 22:30:21 +03:00
#else
2022-11-04 03:15:28 +03:00
#define CLAPI
2022-11-03 22:30:21 +03:00
#endif
extern "C" {
2022-11-05 05:08:50 +03:00
CLAPI void *init_aug (augSettings settings, int flags);
2022-11-05 00:10:00 +03:00
2022-11-05 05:08:50 +03:00
CLAPI bool load_file (void *aug, const char *filePath);
2022-11-05 00:38:12 +03:00
2022-11-05 05:08:50 +03:00
CLAPI void print_preview (augeas *aug,const char *matchPath);
2022-11-05 00:38:12 +03:00
2022-11-05 05:08:50 +03:00
CLAPI void print_tree (augeas *aug,const char *matchPath);
2022-11-05 00:38:12 +03:00
2022-11-05 05:08:50 +03:00
CLAPI const char *get_tree (augeas *aug,const char *matchPath);
2022-11-05 00:38:12 +03:00
2022-11-05 05:08:50 +03:00
CLAPI const char *get_node (augeas *aug, char *path);
2022-11-05 00:38:12 +03:00
2022-11-05 05:08:50 +03:00
CLAPI void close_aug (void *aug);
2022-11-03 22:30:21 +03:00
2022-11-05 05:08:50 +03:00
CLAPI void free_str (char *str);
2022-11-05 00:10:00 +03:00
2022-11-03 22:30:21 +03:00
}