aboutsummaryrefslogtreecommitdiff
path: root/src/cynic.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cynic.h')
-rw-r--r--src/cynic.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/cynic.h b/src/cynic.h
index 5380b84..ef56555 100644
--- a/src/cynic.h
+++ b/src/cynic.h
@@ -34,6 +34,8 @@
extern "C" {
#endif
+extern void cyn_init(void);
+
/* ---- Library loading API ---- */
/* ------- Threading API ------- */
/* -------- Logging API -------- */
@@ -111,15 +113,13 @@ typedef enum {
CYN_FILE_OPEN_EXISTING = 1 << 9,
} File_Open_Flags;
-typedef struct File_Handle File_Handle;
-
// extern File_Handle *cyn_file_open(String path, File_Open_Flags flags, File_Status *status);
-extern File_Handle *cyn_file_open(String path, File_Status *status);
+extern struct File_Handle *cyn_file_open(String path, File_Status *status);
/* path - could be partial or full, should be always with '/'
* status - is optional,
* returns NULL on error and writes error into a `status`.
* */
-extern void cyn_file_close(File_Handle *handle);
+extern void cyn_file_close(struct File_Handle *handle);
/* --------- Config API -------- */