Skip to content
Snippets Groups Projects
Commit f204ec22 authored by rswindell's avatar rswindell
Browse files

Created a semaphore file API functions: semfile_list_add and semfile_list_free.

parent 3258a44c
No related branches found
No related tags found
No related merge requests found
...@@ -884,6 +884,8 @@ extern "C" { ...@@ -884,6 +884,8 @@ extern "C" {
DLLEXPORT char* DLLCALL semfile_list_check(time_t* t, link_list_t* filelist); DLLEXPORT char* DLLCALL semfile_list_check(time_t* t, link_list_t* filelist);
DLLEXPORT void DLLCALL semfile_list_init(link_list_t* filelist, const char* parent, DLLEXPORT void DLLCALL semfile_list_init(link_list_t* filelist, const char* parent,
const char* action, const char* hostname, const char* service); const char* action, const char* hostname, const char* service);
DLLEXPORT void DLLCALL semfile_list_add(link_list_t* filelist, const char* fname);
DLLEXPORT void DLLCALL semfile_list_free(link_list_t* filelist);
#ifdef JAVASCRIPT #ifdef JAVASCRIPT
......
...@@ -85,4 +85,14 @@ void DLLCALL semfile_list_init(link_list_t* filelist, const char* parent, ...@@ -85,4 +85,14 @@ void DLLCALL semfile_list_init(link_list_t* filelist, const char* parent,
listPushNodeString(filelist,path); listPushNodeString(filelist,path);
SAFEPRINTF4(path,"%s%s.%s.%s",parent,action,hostname,service); SAFEPRINTF4(path,"%s%s.%s.%s",parent,action,hostname,service);
listPushNodeString(filelist,path); listPushNodeString(filelist,path);
} }
\ No newline at end of file
void DLLCALL semfile_list_add(link_list_t* filelist, const char* path)
{
listPushNodeString(filelist, path);
}
void DLLCALL semfile_list_free(link_list_t* filelist)
{
listFree(filelist);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment