summaryrefslogtreecommitdiff
path: root/new/ui.h
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2015-04-09 22:38:11 -0400
committerPietro Gagliardi <[email protected]>2015-04-09 22:38:11 -0400
commit50a227058a8d72f1fb885458b882cedb0e0d7f79 (patch)
treec68e86810a6036645278b707430532d9f767c7cc /new/ui.h
parentd9315e6d8f528840dd396fbbeb96cb22c8a5df98 (diff)
Changed the allocation logging from a compile-time setting to the first initialization option.
Diffstat (limited to 'new/ui.h')
-rw-r--r--new/ui.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/new/ui.h b/new/ui.h
index 9bf8601..7013a36 100644
--- a/new/ui.h
+++ b/new/ui.h
@@ -8,6 +8,15 @@
typedef struct uiInitError uiInitError;
typedef struct uiInitOptions uiInitOptions;
+// TODO note that should be initialized to zero
+struct uiInitOptions {
+ // TODO cbSize
+
+ // If nonzero, allocations will be logged to stderr.
+ // See leaks.awk.
+ int debugLogAllocations;
+};
+
uiInitError *uiInit(uiInitOptions *);
const char *uiInitErrorMessage(uiInitError *);
void uiInitErrorFree(uiInitError *);