develop.uap-core.de/git
/
mizunara.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
move control socket handling to separate file
[mizunara.git]
/
mizucp
/
main.h
diff --git
a/mizucp/main.h
b/mizucp/main.h
index
9192835
..
f30b12a
100644
(file)
--- a/
mizucp/main.h
+++ b/
mizucp/main.h
@@
-37,9
+37,10
@@
extern "C" {
#endif
extern "C" {
#endif
-#define UWCP_ENV_HOME "HOME"
-#define UWCP_CFG_DIR ".uwfile"
-#define UWCP_COPY_DIR "copy"
+#define MZCP_ENV_HOME "HOME"
+#define MZCP_CFG_BASE ".config"
+#define MZCP_CFG_DIR ".config/mizunara"
+#define MZCP_COPY_DIR "copy"
#define CLIENT_MSG_BUFSIZE 512
#define CLIENT_MSG_BUFSIZE 512
@@
-53,22
+54,12
@@
typedef struct {
CPBool printsocket;
} CPSettings;
CPBool printsocket;
} CPSettings;
-typedef struct {
- int fd;
- char buf[CLIENT_MSG_BUFSIZE];
- size_t pos;
-} CtrlClient;
-
-int uwcp_copy(CPSettings *settings);
-
-int uwcp_srvctrl(CPSettings *settings);
+const char* mzcp_get_cfgdir(void);
+const char* mzcp_get_copydir(void);
-
void client_free(CtrlClient *client
);
+
int mzcp_copy(CPSettings *settings
);
-int handle_messages(CtrlClient *client);
-int handle_client_msg(CtrlClient *client, sstr_t msg);
-void client_send_status(CtrlClient *client);
#ifdef __cplusplus
}
#ifdef __cplusplus
}