]> git.lizzy.rs Git - bspwm.git/blobdiff - subscribe.h
Fix typo
[bspwm.git] / subscribe.h
index 767a138499008384c7058855a25b07635cef3469..2f52750546c2d94bc9ec212d87af514b8be30b10 100644 (file)
@@ -1,4 +1,4 @@
-/* Copyright (c) 2012-2014, Bastien Dejean
+/* Copyright (c) 2012, Bastien Dejean
  * All rights reserved.
  *
  * Redistribution and use in source and binary forms, with or without
  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
  * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- *
- * The views and conclusions contained in the software and documentation are those
- * of the authors and should not be interpreted as representing official policies,
- * either expressed or implied, of the FreeBSD Project.
  */
 
 #ifndef BSPWM_SUBSCRIBE_H
 #define BSPWM_SUBSCRIBE_H
 
-subscriber_list_t *make_subscriber_list(int fd);
+typedef enum {
+       SBSC_MASK_REPORT = 1 << 0,
+       SBSC_MASK_MONITOR_ADD = 1 << 1,
+       SBSC_MASK_MONITOR_RENAME = 1 << 2,
+       SBSC_MASK_MONITOR_REMOVE = 1 << 3,
+       SBSC_MASK_MONITOR_SWAP = 1 << 4,
+       SBSC_MASK_MONITOR_FOCUS = 1 << 5,
+       SBSC_MASK_MONITOR_GEOMETRY = 1 << 6,
+       SBSC_MASK_DESKTOP_ADD = 1 << 7,
+       SBSC_MASK_DESKTOP_RENAME = 1 << 8,
+       SBSC_MASK_DESKTOP_REMOVE = 1 << 9,
+       SBSC_MASK_DESKTOP_SWAP = 1 << 10,
+       SBSC_MASK_DESKTOP_TRANSFER = 1 << 11,
+       SBSC_MASK_DESKTOP_FOCUS = 1 << 12,
+       SBSC_MASK_DESKTOP_ACTIVATE = 1 << 13,
+       SBSC_MASK_DESKTOP_LAYOUT = 1 << 14,
+       SBSC_MASK_NODE_MANAGE = 1 << 15,
+       SBSC_MASK_NODE_UNMANAGE = 1 << 16,
+       SBSC_MASK_NODE_SWAP = 1 << 17,
+       SBSC_MASK_NODE_TRANSFER = 1 << 18,
+       SBSC_MASK_NODE_FOCUS = 1 << 19,
+       SBSC_MASK_NODE_PRESEL = 1 << 20,
+       SBSC_MASK_NODE_STACK = 1 << 21,
+       SBSC_MASK_NODE_ACTIVATE = 1 << 22,
+       SBSC_MASK_NODE_GEOMETRY = 1 << 23,
+       SBSC_MASK_NODE_STATE = 1 << 24,
+       SBSC_MASK_NODE_FLAG = 1 << 25,
+       SBSC_MASK_NODE_LAYER = 1 << 26,
+       SBSC_MASK_MONITOR = (1 << 7) - (1 << 1),
+       SBSC_MASK_DESKTOP = (1 << 15) - (1 << 7),
+       SBSC_MASK_NODE = (1 << 27) - (1 << 15),
+       SBSC_MASK_ALL = (1 << 27) - 1
+} subscriber_mask_t;
+
+subscriber_list_t *make_subscriber_list(FILE *stream, int field);
 void remove_subscriber(subscriber_list_t *sb);
-void add_subscriber(int fd);
-void feed_subscriber(subscriber_list_t *sb);
+void add_subscriber(FILE *stream, int field);
+int print_report(FILE *stream);
+void put_status(subscriber_mask_t mask, ...);
 
 #endif