aboutsummaryrefslogtreecommitdiffstats
path: root/src/ntp_server.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/ntp_server.h')
-rw-r--r--src/ntp_server.h20
1 files changed, 8 insertions, 12 deletions
diff --git a/src/ntp_server.h b/src/ntp_server.h
index 56593fef0..2b970dff2 100644
--- a/src/ntp_server.h
+++ b/src/ntp_server.h
@@ -20,6 +20,8 @@
#ifndef MPD_NTP_SERVER_H
#define MPD_NTP_SERVER_H
+#include <glib.h>
+
#include <stdbool.h>
struct timeval;
@@ -27,24 +29,18 @@ struct timeval;
struct ntp_server {
unsigned short port;
int fd;
+
+ GIOChannel *channel;
+ GSource *source;
};
void
ntp_server_init(struct ntp_server *ntp);
void
-ntp_server_close(struct ntp_server *ntp);
-
-/*
- * Recv the NTP datagram from the AirTunes, send back an NTP response.
- */
-bool
-ntp_server_handle(struct ntp_server *ntp);
+ntp_server_open(struct ntp_server *ntp, int fd);
-/*
- * check to see if there are any timing requests, and respond if there are any
- */
-bool
-ntp_server_check(struct ntp_server *ntp, struct timeval *tout);
+void
+ntp_server_close(struct ntp_server *ntp);
#endif