/usr/include/afpfs-ng/dsi.h is in libafpclient-dev 0.8.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 | #ifndef __DSI_H_
#define __DSI_H_
#include "afp.h"
struct dsi_request
{
unsigned short requestid;
unsigned char subcommand;
void * other;
unsigned char wait;
pthread_cond_t condition_cond;
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
|