mirror of https://github.com/dnomd343/ClearDNS
dnomd343
2 years ago
11 changed files with 56 additions and 16 deletions
@ -1,7 +1,13 @@ |
|||||
#ifndef _PROCESS_H_ |
#ifndef _PROCESS_H_ |
||||
#define _PROCESS_H_ |
#define _PROCESS_H_ |
||||
|
|
||||
void server_daemon(); |
//void server_daemon();
|
||||
void init_server(char *init_script, char *custom_script); |
//void init_server(char *init_script, char *custom_script);
|
||||
|
|
||||
|
typedef struct { |
||||
|
char **cmd; |
||||
|
char **env; |
||||
|
char *cwd; |
||||
|
} process; |
||||
|
|
||||
#endif |
#endif |
||||
|
@ -1,7 +1,8 @@ |
|||||
#ifndef _STRLIST_H_ |
#ifndef _STR_H_ |
||||
#define _STRLIST_H_ |
#define _STR_H_ |
||||
|
|
||||
char* string_init(char *str); |
char* string_init(char *str); |
||||
|
char* string_join(char *base, const char *add, int is_new); |
||||
|
|
||||
char** string_list_init(); |
char** string_list_init(); |
||||
int string_list_len(char **string_list); |
int string_list_len(char **string_list); |
@ -1,3 +1,3 @@ |
|||||
cmake_minimum_required(VERSION 2.8.12) |
cmake_minimum_required(VERSION 2.8.12) |
||||
|
|
||||
add_library(utils logger.c strList.c cJSON.c) |
add_library(utils logger.c str.c cJSON.c) |
||||
|
Loading…
Reference in new issue