X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=i3bar%2Finclude%2Fipc.h;h=686c0322d31c9bd119f9df6627d44dda557df1e4;hb=d9ca3e4274e117f6270d8f3b5b99a97073749b42;hp=f20d45f0a12463be617551c5d30728a905cc7d94;hpb=d660c4bcffeb56d8a967bf9de747b8fafa691445;p=i3%2Fi3 diff --git a/i3bar/include/ipc.h b/i3bar/include/ipc.h index f20d45f0..686c0322 100644 --- a/i3bar/include/ipc.h +++ b/i3bar/include/ipc.h @@ -2,19 +2,18 @@ * vim:ts=4:sw=4:expandtab * * i3bar - an xcb-based status- and ws-bar for i3 - * © 2010-2012 Axel Wagner and contributors (see also: LICENSE) + * © 2010 Axel Wagner and contributors (see also: LICENSE) * * ipc.c: Communicating with i3 * */ -#ifndef IPC_H_ -#define IPC_H_ +#pragma once #include /* * Initiate a connection to i3. - * socket-path must be a valid path to the ipc_socket of i3 + * socket_path must be a valid path to the ipc_socket of i3 * */ int init_connection(const char *socket_path); @@ -26,16 +25,14 @@ int init_connection(const char *socket_path); void destroy_connection(void); /* - * Sends a Message to i3. + * Sends a message to i3. * type must be a valid I3_IPC_MESSAGE_TYPE (see i3/ipc.h for further information) * */ -int i3_send_msg(uint32_t type, const char* payload); +int i3_send_msg(uint32_t type, const char *payload); /* * Subscribe to all the i3-events, we need * */ void subscribe_events(void); - -#endif