diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2013-02-18 04:43:58 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2013-02-18 04:43:58 +0000 |
commit | df2e80c8b472e780b4cc9bfda947b396898cd81d (patch) | |
tree | 6c4c24197c5ec540d02ef640e97d288607c97e01 /net/afpfs-ng/files/patch-include__afpfs-ng__libafpclient.h | |
parent | Convert to OptionsNG (diff) |
afpfs-ng is an Apple Filing Protocol client that will allow BSD,
Linux and Mac OS X systems to access files exported from a
Mac OS system with AFP over TCP.
WWW: http://sourceforge.net/projects/afpfs-ng/
PR: ports/172780
Submitted by: Manuel Creach <manuel.creach@icloud.com>
Diffstat (limited to 'net/afpfs-ng/files/patch-include__afpfs-ng__libafpclient.h')
-rw-r--r-- | net/afpfs-ng/files/patch-include__afpfs-ng__libafpclient.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/net/afpfs-ng/files/patch-include__afpfs-ng__libafpclient.h b/net/afpfs-ng/files/patch-include__afpfs-ng__libafpclient.h new file mode 100644 index 000000000000..28a90c19435e --- /dev/null +++ b/net/afpfs-ng/files/patch-include__afpfs-ng__libafpclient.h @@ -0,0 +1,54 @@ +--- 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 <unistd.h> ++#include <syslog.h> ++ ++#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 |