]> git.sur5r.net Git - i3/i3/blobdiff - include/shmlog.h
Merge pull request #1451 from acrisci/feature/handle-button-release
[i3/i3] / include / shmlog.h
index fd3f53ebfac73a0ef60ea9f688c9126498626140..5af697e708ff90283585893f5a81df418666282d 100644 (file)
@@ -8,12 +8,14 @@
  * default (ringbuffer for storing the debug log).
  *
  */
-#ifndef I3_I3_SHMLOG_H
-#define I3_I3_SHMLOG_H
+#pragma once
 
 #include <stdint.h>
 #include <pthread.h>
 
+/* Default shmlog size if not set by user. */
+extern const int default_shmlog_size;
+
 /*
  * Header of the shmlog file. Used by i3/src/log.c and i3/i3-dump-log/main.c.
  *
@@ -40,5 +42,3 @@ typedef struct i3_shmlog_header {
      * tail -f) in an efficient way. */
     pthread_cond_t condvar;
 } i3_shmlog_header;
-
-#endif