auth-client-interface.h \
auth-client-private.h \
auth-master.h \
+ auth-master-private.h \
auth-proxy.h
pkginc_libdir=$(pkgincludedir)
--- /dev/null
+#ifndef AUTH_MASTER_PRIVATE_H
+#define AUTH_MASTER_PRIVATE_H
+
+#include "connection.h"
+#include "auth-client-interface.h"
+#include "auth-client-private.h"
+#include "auth-master.h"
+#include "master-interface.h"
+
+#define AUTH_MASTER_IDLE_SECS 60
+
+#define MAX_INBUF_SIZE 8192
+#define MAX_OUTBUF_SIZE 1024
+
+struct auth_master_connection {
+ struct connection conn;
+ struct connection_list *clist;
+ struct event *event_parent, *event;
+
+ char *auth_socket_path;
+ enum auth_master_flags flags;
+
+ struct ioloop *ioloop, *prev_ioloop;
+ struct timeout *to;
+
+ unsigned int request_counter;
+
+ bool (*reply_callback)(const char *cmd, const char *const *args,
+ void *context);
+ void *reply_context;
+
+ unsigned int timeout_msecs;
+
+ bool connected:1;
+ bool sent_handshake:1;
+ bool aborted:1;
+};
+
+#endif
#include "ostream.h"
#include "str.h"
#include "strescape.h"
-#include "connection.h"
-#include "auth-client-interface.h"
-#include "master-interface.h"
#include "master-service.h"
-#include "auth-client-private.h"
-#include "auth-master.h"
-#include <unistd.h>
-
-#define AUTH_MASTER_IDLE_SECS 60
-
-#define MAX_INBUF_SIZE 8192
-#define MAX_OUTBUF_SIZE 1024
-
-struct auth_master_connection {
- struct connection conn;
- struct connection_list *clist;
- struct event *event_parent, *event;
-
- char *auth_socket_path;
- enum auth_master_flags flags;
-
- struct ioloop *ioloop, *prev_ioloop;
- struct timeout *to;
-
- unsigned int request_counter;
-
- bool (*reply_callback)(const char *cmd, const char *const *args,
- void *context);
- void *reply_context;
-
- unsigned int timeout_msecs;
-
- bool connected:1;
- bool sent_handshake:1;
- bool aborted:1;
-};
+#include "auth-master-private.h"
static void auth_master_connected(struct connection *_conn, bool success);
static int