X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=include%2Fshmlog.h;h=5af697e708ff90283585893f5a81df418666282d;hb=fbaf0844261b70ab00d71fb1cd856e730f6fe5fd;hp=e755d2f139cdc003e9d5fc655d7aec7c882bd79a;hpb=e68a8dd86c34db800a2b5643c94b292ad191a708;p=i3%2Fi3 diff --git a/include/shmlog.h b/include/shmlog.h index e755d2f1..5af697e7 100644 --- a/include/shmlog.h +++ b/include/shmlog.h @@ -8,12 +8,14 @@ * default (ringbuffer for storing the debug log). * */ -#ifndef _I3_SHMLOG_H -#define _I3_SHMLOG_H +#pragma once #include #include +/* 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