libt2n: (gerd) add protocol version config, add server callbacks (not fully working...
[libt2n] / src / types.hxx
index 3053dc5..2641485 100644 (file)
@@ -23,11 +23,15 @@ namespace libt2n
 {
 
 /// possible levels for logging
-enum log_level_values { none=0, error=1, debug=2 };
+enum log_level_values { none=0, error=1, debug=2, fulldebug=3 };
 
 /// possible types of a socket (tcp and unix)
 enum socket_type_value { tcp_s, unix_s };
 
+/// possible events for callback, __events_end must be the last event and must not be used 
+/// for anything else than marking the end
+enum callback_event_type { new_connection=0, connection_closed=1, connection_deleted=2, __events_end };
+
 }
 
 #endif