mirror of
https://github.com/mabam/afpfs-ng-mac.git
synced 2025-01-17 13:29:53 +00:00
24 lines
449 B
C
24 lines
449 B
C
#include <afpfs-ng/afp.h>
|
|
#include <afpfs-ng/libafpclient.h>
|
|
|
|
|
|
struct libafpclient * libafpclient = NULL;
|
|
|
|
static struct libafpclient null_afpclient = {
|
|
.unmount_volume = NULL,
|
|
.log_for_client = stdout_log_for_client,
|
|
.forced_ending_hook = NULL,
|
|
.scan_extra_fds = NULL,
|
|
.loop_started = NULL,
|
|
};
|
|
|
|
|
|
void libafpclient_register(struct libafpclient * tmpclient)
|
|
{
|
|
if (tmpclient)
|
|
libafpclient=tmpclient;
|
|
else
|
|
libafpclient=&null_afpclient;
|
|
}
|
|
|