--- include/afpfs-ng/libafpclient.h.orig 1970-01-01 00:00:00.000000000 +0000 +++ include/afpfs-ng/libafpclient.h 2012-10-14 13:11:34.000000000 +0000 @@ -0,0 +1,50 @@ + +#ifndef __CLIENT_H_ +#define __CLIENT_H_ + +#include +#include + +#define MAX_CLIENT_RESPONSE 2048 + + +enum loglevels { + AFPFSD, +}; + +struct afp_server; +struct afp_volume; + +struct libafpclient { + int (*unmount_volume) (struct afp_volume * volume); + void (*log_for_client)(void * priv, + enum loglevels loglevel, int logtype, const char *message); + void (*forced_ending_hook)(void); + int (*scan_extra_fds)(int command_fd,fd_set *set, int * max_fd); + void (*loop_started)(void); +} ; + +extern struct libafpclient * libafpclient; + +void libafpclient_register(struct libafpclient * tmpclient); + + +void signal_main_thread(void); + +/* These are logging functions */ + +#define MAXLOGSIZE 2048 + +#define LOG_METHOD_SYSLOG 1 +#define LOG_METHOD_STDOUT 2 + +void set_log_method(int m); + + +void log_for_client(void * priv, + enum loglevels loglevel, int logtype, char * message,...); + +void stdout_log_for_client(void * priv, + enum loglevels loglevel, int logtype, const char *message); + +#endif diff -Naur afpfs-ng-0.8.1.orig/include/afpfs-ng/map_def.h afpfs-ng-0.8.1/include/afpfs-ng/map_def.h