aboutsummaryrefslogtreecommitdiff
path: root/src/cynic.h
diff options
context:
space:
mode:
authorbonmas14 <bonmas14@gmail.com>2025-09-28 17:53:03 +0000
committerbonmas14 <bonmas14@gmail.com>2025-09-28 17:53:03 +0000
commit30751aece04ba8954513bbb7aca996244e6fa684 (patch)
treec40dfac95dd3c0766656324c45465f0375061b5d /src/cynic.h
parent3ad95773ae4f963435003c260278177f1e22577e (diff)
downloadungrateful-30751aece04ba8954513bbb7aca996244e6fa684.tar.gz
ungrateful-30751aece04ba8954513bbb7aca996244e6fa684.zip
changes
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 -------- */