Extra logging, begin defining BlueSky-specific error codes.
[bluesky.git] / bluesky / bluesky.h
index dbb69bb..fc30075 100644 (file)
 extern "C" {
 #endif
 
+/* BlueSky status and error codes.  Various frontends should translate these to
+ * the appropriate error code for whatever protocol they implement. */
+typedef enum {
+    BSTATUS_OK = 0,             /* No error */
+    BSTATUS_IOERR,              /* I/O error of some form */
+    BSTATUS_NOENT,              /* File does not exist */
+} BlueSkyStatus;
+
 void bluesky_init(void);
 
 gchar *bluesky_lowercase(const gchar *s);