summaryrefslogtreecommitdiff
path: root/src/plugins/relay
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2017-08-10 20:05:16 +0200
committerSébastien Helleu <flashcode@flashtux.org>2017-08-10 20:05:16 +0200
commit9bad3f44dbf88104a1ecc61d40dca17f15a209d6 (patch)
tree7f23f022fb9de453c22730f2315160728fc9362c /src/plugins/relay
parentc58716809cde8697469f7a88f1b8d6a01bd62d13 (diff)
downloadweechat-9bad3f44dbf88104a1ecc61d40dca17f15a209d6.zip
core: remove value for first #define in headers, add "PLUGIN" in plugin headers
Diffstat (limited to 'src/plugins/relay')
-rw-r--r--src/plugins/relay/irc/relay-irc.h6
-rw-r--r--src/plugins/relay/relay-buffer.h6
-rw-r--r--src/plugins/relay/relay-client.h6
-rw-r--r--src/plugins/relay/relay-command.h6
-rw-r--r--src/plugins/relay/relay-completion.h6
-rw-r--r--src/plugins/relay/relay-config.h6
-rw-r--r--src/plugins/relay/relay-info.h6
-rw-r--r--src/plugins/relay/relay-network.h6
-rw-r--r--src/plugins/relay/relay-raw.h6
-rw-r--r--src/plugins/relay/relay-server.h6
-rw-r--r--src/plugins/relay/relay-upgrade.h6
-rw-r--r--src/plugins/relay/relay-websocket.h6
-rw-r--r--src/plugins/relay/relay.h6
-rw-r--r--src/plugins/relay/weechat/relay-weechat-msg.h6
-rw-r--r--src/plugins/relay/weechat/relay-weechat-nicklist.h6
-rw-r--r--src/plugins/relay/weechat/relay-weechat-protocol.h6
-rw-r--r--src/plugins/relay/weechat/relay-weechat.h6
17 files changed, 51 insertions, 51 deletions
diff --git a/src/plugins/relay/irc/relay-irc.h b/src/plugins/relay/irc/relay-irc.h
index 0d02cf97a..c77769fe8 100644
--- a/src/plugins/relay/irc/relay-irc.h
+++ b/src/plugins/relay/irc/relay-irc.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_IRC_H
-#define WEECHAT_RELAY_IRC_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_IRC_H
+#define WEECHAT_PLUGIN_RELAY_IRC_H
struct t_relay_client;
@@ -74,4 +74,4 @@ extern int relay_irc_add_to_infolist (struct t_infolist_item *item,
struct t_relay_client *client);
extern void relay_irc_print_log (struct t_relay_client *client);
-#endif /* WEECHAT_RELAY_IRC_H */
+#endif /* WEECHAT_PLUGIN_RELAY_IRC_H */
diff --git a/src/plugins/relay/relay-buffer.h b/src/plugins/relay/relay-buffer.h
index 98b388590..9770d6c3b 100644
--- a/src/plugins/relay/relay-buffer.h
+++ b/src/plugins/relay/relay-buffer.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_BUFFER_H
-#define WEECHAT_RELAY_BUFFER_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_BUFFER_H
+#define WEECHAT_PLUGIN_RELAY_BUFFER_H
#define RELAY_BUFFER_NAME "relay.list"
@@ -33,4 +33,4 @@ extern int relay_buffer_close_cb (const void *pointer, void *data,
struct t_gui_buffer *buffer);
extern void relay_buffer_open ();
-#endif /* WEECHAT_RELAY_BUFFER_H */
+#endif /* WEECHAT_PLUGIN_RELAY_BUFFER_H */
diff --git a/src/plugins/relay/relay-client.h b/src/plugins/relay/relay-client.h
index 4634d7c7a..d64b80e1b 100644
--- a/src/plugins/relay/relay-client.h
+++ b/src/plugins/relay/relay-client.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_CLIENT_H
-#define WEECHAT_RELAY_CLIENT_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_CLIENT_H
+#define WEECHAT_PLUGIN_RELAY_CLIENT_H
#include <time.h>
@@ -153,4 +153,4 @@ extern int relay_client_add_to_infolist (struct t_infolist *infolist,
struct t_relay_client *client);
extern void relay_client_print_log ();
-#endif /* WEECHAT_RELAY_CLIENT_H */
+#endif /* WEECHAT_PLUGIN_RELAY_CLIENT_H */
diff --git a/src/plugins/relay/relay-command.h b/src/plugins/relay/relay-command.h
index c8f617e51..1f3ac8001 100644
--- a/src/plugins/relay/relay-command.h
+++ b/src/plugins/relay/relay-command.h
@@ -17,9 +17,9 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_COMMAND_H
-#define WEECHAT_RELAY_COMMAND_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_COMMAND_H
+#define WEECHAT_PLUGIN_RELAY_COMMAND_H
extern void relay_command_init ();
-#endif /* WEECHAT_RELAY_COMMAND_H */
+#endif /* WEECHAT_PLUGIN_RELAY_COMMAND_H */
diff --git a/src/plugins/relay/relay-completion.h b/src/plugins/relay/relay-completion.h
index cec77e59f..1b4ef695f 100644
--- a/src/plugins/relay/relay-completion.h
+++ b/src/plugins/relay/relay-completion.h
@@ -17,9 +17,9 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_COMPLETION_H
-#define WEECHAT_RELAY_COMPLETION_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_COMPLETION_H
+#define WEECHAT_PLUGIN_RELAY_COMPLETION_H
extern void relay_completion_init ();
-#endif /* WEECHAT_RELAY_COMPLETION_H */
+#endif /* WEECHAT_PLUGIN_RELAY_COMPLETION_H */
diff --git a/src/plugins/relay/relay-config.h b/src/plugins/relay/relay-config.h
index 2bd1c0545..cf1593cbf 100644
--- a/src/plugins/relay/relay-config.h
+++ b/src/plugins/relay/relay-config.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_CONFIG_H
-#define WEECHAT_RELAY_CONFIG_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_CONFIG_H
+#define WEECHAT_PLUGIN_RELAY_CONFIG_H
#include <regex.h>
@@ -69,4 +69,4 @@ extern int relay_config_read ();
extern int relay_config_write ();
extern void relay_config_free ();
-#endif /* WEECHAT_RELAY_CONFIG_H */
+#endif /* WEECHAT_PLUGIN_RELAY_CONFIG_H */
diff --git a/src/plugins/relay/relay-info.h b/src/plugins/relay/relay-info.h
index 175300bc1..c9dd844c1 100644
--- a/src/plugins/relay/relay-info.h
+++ b/src/plugins/relay/relay-info.h
@@ -17,9 +17,9 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_INFO_H
-#define WEECHAT_RELAY_INFO_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_INFO_H
+#define WEECHAT_PLUGIN_RELAY_INFO_H
extern void relay_info_init ();
-#endif /* WEECHAT_RELAY_INFO_H */
+#endif /* WEECHAT_PLUGIN_RELAY_INFO_H */
diff --git a/src/plugins/relay/relay-network.h b/src/plugins/relay/relay-network.h
index aaf38df60..fb1d2f38e 100644
--- a/src/plugins/relay/relay-network.h
+++ b/src/plugins/relay/relay-network.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_NETWORK_H
-#define WEECHAT_RELAY_NETWORK_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_NETWORK_H
+#define WEECHAT_PLUGIN_RELAY_NETWORK_H
#ifdef HAVE_GNUTLS
#include <gnutls/gnutls.h>
@@ -38,4 +38,4 @@ extern void relay_network_set_priority ();
extern void relay_network_init ();
extern void relay_network_end ();
-#endif /* WEECHAT_RELAY_NETWORK_H */
+#endif /* WEECHAT_PLUGIN_RELAY_NETWORK_H */
diff --git a/src/plugins/relay/relay-raw.h b/src/plugins/relay/relay-raw.h
index a2727d6c4..f70b51830 100644
--- a/src/plugins/relay/relay-raw.h
+++ b/src/plugins/relay/relay-raw.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_RAW_H
-#define WEECHAT_RELAY_RAW_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_RAW_H
+#define WEECHAT_PLUGIN_RELAY_RAW_H
#include <time.h>
@@ -58,4 +58,4 @@ extern void relay_raw_message_free_all ();
extern int relay_raw_add_to_infolist (struct t_infolist *infolist,
struct t_relay_raw_message *raw_message);
-#endif /* WEECHAT_RELAY_RAW_H */
+#endif /* WEECHAT_PLUGIN_RELAY_RAW_H */
diff --git a/src/plugins/relay/relay-server.h b/src/plugins/relay/relay-server.h
index 826d0b160..0cf66e7f1 100644
--- a/src/plugins/relay/relay-server.h
+++ b/src/plugins/relay/relay-server.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_SERVER_H
-#define WEECHAT_RELAY_SERVER_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_SERVER_H
+#define WEECHAT_PLUGIN_RELAY_SERVER_H
#include <time.h>
@@ -68,4 +68,4 @@ extern int relay_server_add_to_infolist (struct t_infolist *infolist,
struct t_relay_server *server);
extern void relay_server_print_log ();
-#endif /* WEECHAT_RELAY_SERVER_H */
+#endif /* WEECHAT_PLUGIN_RELAY_SERVER_H */
diff --git a/src/plugins/relay/relay-upgrade.h b/src/plugins/relay/relay-upgrade.h
index 17a375700..641af9f0d 100644
--- a/src/plugins/relay/relay-upgrade.h
+++ b/src/plugins/relay/relay-upgrade.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_UPGRADE_H
-#define WEECHAT_RELAY_UPGRADE_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_UPGRADE_H
+#define WEECHAT_PLUGIN_RELAY_UPGRADE_H
#define RELAY_UPGRADE_FILENAME "relay"
@@ -34,4 +34,4 @@ enum t_relay_upgrade_type
extern int relay_upgrade_save ();
extern int relay_upgrade_load ();
-#endif /* WEECHAT_RELAY_UPGRADE_H */
+#endif /* WEECHAT_PLUGIN_RELAY_UPGRADE_H */
diff --git a/src/plugins/relay/relay-websocket.h b/src/plugins/relay/relay-websocket.h
index 2a70ee566..e0b3a77d9 100644
--- a/src/plugins/relay/relay-websocket.h
+++ b/src/plugins/relay/relay-websocket.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_WEBSOCKET_H
-#define WEECHAT_RELAY_WEBSOCKET_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_WEBSOCKET_H
+#define WEECHAT_PLUGIN_RELAY_WEBSOCKET_H
#define WEBSOCKET_FRAME_OPCODE_CONTINUATION 0x00
#define WEBSOCKET_FRAME_OPCODE_TEXT 0x01
@@ -43,4 +43,4 @@ extern char *relay_websocket_encode_frame (int opcode,
unsigned long long length,
unsigned long long *length_frame);
-#endif /* WEECHAT_RELAY_WEBSOCKET_H */
+#endif /* WEECHAT_PLUGIN_RELAY_WEBSOCKET_H */
diff --git a/src/plugins/relay/relay.h b/src/plugins/relay/relay.h
index 10621016b..c6dc121ca 100644
--- a/src/plugins/relay/relay.h
+++ b/src/plugins/relay/relay.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_H
-#define WEECHAT_RELAY_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_H
+#define WEECHAT_PLUGIN_RELAY_H
#define weechat_plugin weechat_relay_plugin
#define RELAY_PLUGIN_NAME "relay"
@@ -46,4 +46,4 @@ extern char *relay_protocol_string[];
extern int relay_protocol_search (const char *name);
-#endif /* WEECHAT_RELAY_H */
+#endif /* WEECHAT_PLUGIN_RELAY_H */
diff --git a/src/plugins/relay/weechat/relay-weechat-msg.h b/src/plugins/relay/weechat/relay-weechat-msg.h
index bb012ebe5..642e17f18 100644
--- a/src/plugins/relay/weechat/relay-weechat-msg.h
+++ b/src/plugins/relay/weechat/relay-weechat-msg.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_WEECHAT_MSG_H
-#define WEECHAT_RELAY_WEECHAT_MSG_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_WEECHAT_MSG_H
+#define WEECHAT_PLUGIN_RELAY_WEECHAT_MSG_H
#include <time.h>
@@ -83,4 +83,4 @@ extern void relay_weechat_msg_send (struct t_relay_client *client,
struct t_relay_weechat_msg *msg);
extern void relay_weechat_msg_free (struct t_relay_weechat_msg *msg);
-#endif /* WEECHAT_RELAY_WEECHAT_MSG_H */
+#endif /* WEECHAT_PLUGIN_RELAY_WEECHAT_MSG_H */
diff --git a/src/plugins/relay/weechat/relay-weechat-nicklist.h b/src/plugins/relay/weechat/relay-weechat-nicklist.h
index 5ed15644b..8bdf5ddf5 100644
--- a/src/plugins/relay/weechat/relay-weechat-nicklist.h
+++ b/src/plugins/relay/weechat/relay-weechat-nicklist.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_WEECHAT_NICKLIST_H
-#define WEECHAT_RELAY_WEECHAT_NICKLIST_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_WEECHAT_NICKLIST_H
+#define WEECHAT_PLUGIN_RELAY_WEECHAT_NICKLIST_H
#define RELAY_WEECHAT_NICKLIST_DIFF_UNKNOWN ' '
#define RELAY_WEECHAT_NICKLIST_DIFF_PARENT '^'
@@ -54,4 +54,4 @@ extern void relay_weechat_nicklist_add_item (struct t_relay_weechat_nicklist *ni
struct t_gui_nick *nick);
extern void relay_weechat_nicklist_free (struct t_relay_weechat_nicklist *nicklist);
-#endif /* WEECHAT_RELAY_WEECHAT_NICKLIST_H */
+#endif /* WEECHAT_PLUGIN_RELAY_WEECHAT_NICKLIST_H */
diff --git a/src/plugins/relay/weechat/relay-weechat-protocol.h b/src/plugins/relay/weechat/relay-weechat-protocol.h
index 323b68d50..91551bf7f 100644
--- a/src/plugins/relay/weechat/relay-weechat-protocol.h
+++ b/src/plugins/relay/weechat/relay-weechat-protocol.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_WEECHAT_PROTOCOL_H
-#define WEECHAT_RELAY_WEECHAT_PROTOCOL_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_WEECHAT_PROTOCOL_H
+#define WEECHAT_PLUGIN_RELAY_WEECHAT_PROTOCOL_H
#define RELAY_WEECHAT_PROTOCOL_SYNC_BUFFER 1
#define RELAY_WEECHAT_PROTOCOL_SYNC_NICKLIST 2
@@ -101,4 +101,4 @@ extern int relay_weechat_protocol_timer_nicklist_cb (const void *pointer,
extern void relay_weechat_protocol_recv (struct t_relay_client *client,
const char *data);
-#endif /* WEECHAT_RELAY_WEECHAT_PROTOCOL_H */
+#endif /* WEECHAT_PLUGIN_RELAY_WEECHAT_PROTOCOL_H */
diff --git a/src/plugins/relay/weechat/relay-weechat.h b/src/plugins/relay/weechat/relay-weechat.h
index 9a1a7e440..55cc5a191 100644
--- a/src/plugins/relay/weechat/relay-weechat.h
+++ b/src/plugins/relay/weechat/relay-weechat.h
@@ -17,8 +17,8 @@
* along with WeeChat. If not, see <http://www.gnu.org/licenses/>.
*/
-#ifndef WEECHAT_RELAY_WEECHAT_H
-#define WEECHAT_RELAY_WEECHAT_H 1
+#ifndef WEECHAT_PLUGIN_RELAY_WEECHAT_H
+#define WEECHAT_PLUGIN_RELAY_WEECHAT_H
struct t_relay_client;
@@ -63,4 +63,4 @@ extern int relay_weechat_add_to_infolist (struct t_infolist_item *item,
struct t_relay_client *client);
extern void relay_weechat_print_log (struct t_relay_client *client);
-#endif /* WEECHAT_RELAY_WEECHAT_H */
+#endif /* WEECHAT_PLUGIN_RELAY_WEECHAT_H */