diff options
Diffstat (limited to '')
-rw-r--r-- | net/afpfs-ng/files/patch-include__afpfs-ng__dsi.h | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/net/afpfs-ng/files/patch-include__afpfs-ng__dsi.h b/net/afpfs-ng/files/patch-include__afpfs-ng__dsi.h new file mode 100644 index 000000000000..752a85e767e4 --- /dev/null +++ b/net/afpfs-ng/files/patch-include__afpfs-ng__dsi.h @@ -0,0 +1,39 @@ +--- include/afpfs-ng/dsi.h.orig 1970-01-01 00:00:00.000000000 +0000 ++++ include/afpfs-ng/dsi.h 2012-10-14 13:11:47.000000000 +0000 +@@ -0,0 +1,35 @@ ++ ++#ifndef __DSI_H_ ++#define __DSI_H_ ++ ++#include "afpfs-ng/afp.h" ++ ++struct dsi_request ++{ ++ unsigned short requestid; ++ unsigned char subcommand; ++ void * other; ++ int wait; ++ int done_waiting; ++ pthread_cond_t waiting_cond; ++ pthread_mutex_t waiting_mutex; ++ struct dsi_request * next; ++ int return_code; ++}; ++ ++int dsi_receive(struct afp_server * server, void * data, int size); ++int dsi_getstatus(struct afp_server * server); ++ ++int dsi_opensession(struct afp_server *server); ++ ++int dsi_send(struct afp_server *server, char * msg, int size,int wait,unsigned char subcommand, void ** other); ++struct dsi_session * dsi_create(struct afp_server *server); ++int dsi_restart(struct afp_server *server); ++int dsi_recv(struct afp_server * server); ++ ++#define DSI_BLOCK_TIMEOUT -1 ++#define DSI_DONT_WAIT 0 ++#define DSI_DEFAULT_TIMEOUT 5 ++ ++ ++#endif +diff -Naur afpfs-ng-0.8.1.orig/include/afpfs-ng/libafpclient.h afpfs-ng-0.8.1/include/afpfs-ng/libafpclient.h |