added timeToStr and cmd_users
[NeonServV5.git] / tools.h
diff --git a/tools.h b/tools.h
index 22c1301ef0f236512ce32f8f3ade670238bdaa20..f34787d6d0efbb4d452a3299af7095284ee93eba 100644 (file)
--- a/tools.h
+++ b/tools.h
@@ -6,6 +6,8 @@
 #define TABLE_FLAG_USE_POINTER 0x01
 #define TABLE_FLAG_COL_BOLD    0x02
 
+struct UserNode;
+
 struct Table {
     char ***contents;
     int length;
@@ -13,10 +15,10 @@ struct Table {
     int flags;
     int *col_flags;
     
-    int c_entry;
+    int entrys;
     int *maxwidth;
     
-    char **table; //we just store this to free it in table_free
+    char **table_lines; //we just store this to free it in table_free
 };
 
 int match(const char *mask, const char *name);
@@ -27,4 +29,8 @@ int table_set_bold(struct Table *table, int collum, int bold);
 char **table_end(struct Table *table);
 void table_free(struct Table *table);
 
+int timeToStr(struct UserNode *user, int seconds, int items, char *buf);
+
+void init_tools();
+
 #endif
\ No newline at end of file