Code

screen: make cols and rows local
[ncmpc.git] / src / callbacks.h
index 4fa472fc406802e4168b7c717b1613a22bdf3b38..6c315e45649396063003924ab5c48a13766623b0 100644 (file)
 
 struct mpdclient;
 
+/**
+ * A connection to MPD has been established.
+ */
+void
+mpdclient_connected_callback(void);
+
+/**
+ * An attempt to connect to MPD has failed.
+ * mpdclient_error_callback() has been called already.
+ */
+void
+mpdclient_failed_callback(void);
+
+/**
+ * The connection to MPD was lost.  If this was due to an error, then
+ * mpdclient_error_callback() has already been called.
+ */
+void
+mpdclient_lost_callback(void);
+
 /**
  * To be implemented by the application: mpdclient.c calls this to
  * display an error message.
@@ -39,9 +59,6 @@ bool
 mpdclient_auth_callback(struct mpdclient *c);
 
 void
-mpdclient_idle_callback(enum mpd_error error,
-                       enum mpd_server_error server_error,
-                       const char *message, enum mpd_idle events,
-                       void *ctx);
+mpdclient_idle_callback(enum mpd_idle events);
 
 #endif