#include "filescan-utils.h"
// List Avaliable Configuration Files
-PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext) {
+json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext) {
json_object *responseJ;
char *dirPath;
char* dirList= strdup(searchPath);
return (responseJ);
}
-PUBLIC const char *GetMidleName(const char*name) {
+const char *GetMidleName(const char*name) {
char *fullname = strdup(name);
for (int idx = 0; fullname[idx] != '\0'; idx++) {
return "";
}
-PUBLIC const char *GetBinderName() {
+const char *GetBinderName() {
static char *binderName=NULL;
if (binderName) return binderName;
}
#ifndef USE_API_DYN
-PUBLIC char *GetBindingDirPath()
+char *GetBindingDirPath()
{
// A file description should not be greater than 999.999.999
char fd_link[CONTROL_MAXPATH_LEN];
#include <afb/afb-binding.h>
extern afb_dynapi *AFB_default;
#define AFB_DEBUG(...) AFB_DYNAPI_DEBUG(AFB_default, __VA_ARGS__)
-#else
+#else
#define AFB_BINDING_VERSION 2
#include <afb/afb-binding.h>
#endif
-
-#include <json-c/json.h>
-#ifndef PUBLIC
- #define PUBLIC
-#endif
-#define STATIC static
+#include <json-c/json.h>
#ifndef CONTROL_MAXPATH_LEN
#define CONTROL_MAXPATH_LEN 255
CTL_SCAN_RECURSIVE=1,
} CtlScanDirModeT;
-PUBLIC const char *GetMidleName(const char*name);
-PUBLIC const char *GetBinderName();
-PUBLIC json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext);
-PUBLIC char *GetBindingDirPath();
+const char *GetMidleName(const char*name);
+const char *GetBinderName();
+json_object* ScanForConfig (const char* searchPath, CtlScanDirModeT mode, const char *pre, const char *ext);
+char *GetBindingDirPath();
#ifdef __cplusplus