Commit 2548b92b authored by Gautier Pelloux-Prayer's avatar Gautier Pelloux-Prayer
Browse files

utils.h: export belle_sip_mkdir

parent 2b4f7301
......@@ -209,6 +209,13 @@ typedef void (*belle_sip_background_task_end_callback_t)(void *);
BELLESIP_EXPORT unsigned long belle_sip_begin_background_task(const char *name, belle_sip_background_task_end_callback_t cb, void *data);
BELLESIP_EXPORT void belle_sip_end_background_task(unsigned long id);
/**
* create a directory if it doesn't already exists
*
* @param[in] path The directory to be created
* @return 0 in case of succes, -1 otherwise, note it returns -1 if the directory already exists
*/
BELLESIP_EXPORT int belle_sip_mkdir(const char *path);
BELLE_SIP_END_DECLS
......
......@@ -1026,13 +1026,6 @@ BELLE_SIP_DECLARE_CUSTOM_VPTR_END
* @param[in] file_type if not NULL return only the file with the given extension, must include the '.', ex:".pem"
* @return a belle_sip list containing all found file or NULL if no file were found or directory doesn't exist. List must be destroyed using belle_sip_list_free_with_data(<ret_list>, belle_sip_free)
*/
belle_sip_list_t *belle_sip_parse_directory(const char *path, const char *file_type);
belle_sip_list_t *belle_sip_parse_directory(const char *path, const char *file_type);
/**
* create a directory if it doesn't already exists
*
* @param[in] path The directory to be created
* @return 0 in case of succes, -1 otherwise, note it returns -1 if the directory already exists
*/
int belle_sip_mkdir(const char *path);
#endif
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment