diff --git a/main.cpp b/main.cpp index 1faa63d..5ad2b6d 100644 --- a/main.cpp +++ b/main.cpp @@ -15,7 +15,7 @@ constexpr size_t size(T (&)[N]) { return N; } extern "C" { -CLAPI void* +CLAPI void * init_aug(augSettings settings, int flags) { CHECK_RET_NULLPTR(!path_exists(std::string(settings.root)), "Root path is invalid."); return aug_init(settings.root, settings.loadPath, flags); @@ -51,8 +51,7 @@ CLAPI int rm_node(augeas *aug, const char *path) { } - -CLAPI char* +CLAPI char * get_preview(augeas *aug, const char *path) { CHECK_RET_NULLPTR(!aug, INVALID_STATE); @@ -188,18 +187,11 @@ CLAPI bool save(augeas *aug) { return aug_save(aug) == 0; } -CLAPI void get_arr( unsigned long &size, char** result) -{ - -} - -CLAPI int match(augeas *aug, const char *match_path, char*** matches) { +CLAPI int match(augeas *aug, const char *match_path, char ***matches) { CHECK_RET_INT(!aug, INVALID_STATE); return aug_match(aug, match_path, matches); } - - CLAPI const char *get_node(augeas *aug, const char *path) { const char *value; diff --git a/main.h b/main.h index 66c8704..1c41758 100644 --- a/main.h +++ b/main.h @@ -41,6 +41,5 @@ CLAPI int rm_node (augeas *aug, const char *path); CLAPI bool save (augeas *aug); -CLAPI int match(augeas *aug, const char *match_path, char*** matches); -// internal static extern int match(IntPtr augeas, [MarshalAs(UnmanagedType.LPStr)] string matchPath, uint* size, char*** stringArray); +CLAPI int match(augeas *aug, const char *match_path, char*** matches); }