1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-12-04 14:46:46 -05:00

Make header defines consistent

This commit is contained in:
James Booth 2016-07-24 14:51:39 +01:00
parent 310abd401d
commit 9cff37352a
33 changed files with 75 additions and 60 deletions

View File

@ -32,8 +32,8 @@
*
*/
#ifndef CMD_AC_H
#define CMD_AC_H
#ifndef COMMAND_CMD_AC_H
#define COMMAND_CMD_AC_H
#include "config/preferences.h"
#include "command/cmd_funcs.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef CMD_DEFS_H
#define CMD_DEFS_H
#ifndef COMMAND_CMD_DEFS_H
#define COMMAND_CMD_DEFS_H
#include <glib.h>

View File

@ -32,8 +32,8 @@
*
*/
#ifndef CMD_FUNCS_H
#define CMD_FUNCS_H
#ifndef COMMAND_CMD_FUNCS_H
#define COMMAND_CMD_FUNCS_H
#include "ui/win_types.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef ACCOUNT_H
#define ACCOUNT_H
#ifndef CONFIG_ACCOUNT_H
#define CONFIG_ACCOUNT_H
#include "common.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef ACCOUNTS_H
#define ACCOUNTS_H
#ifndef CONFIG_ACCOUNTS_H
#define CONFIG_ACCOUNTS_H
#define MAX_PASSWORD_SIZE 64

View File

@ -32,9 +32,14 @@
*
*/
#ifndef CONFIG_CONFLISTS_H
#define CONFIG_CONFLISTS_H
#include <glib.h>
gboolean conf_string_list_add(GKeyFile *keyfile, const char *const group, const char *const key,
const char *const item);
gboolean conf_string_list_remove(GKeyFile *keyfile, const char *const group, const char *const key,
const char *const item);
#endif

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PREFERENCES_H
#define PREFERENCES_H
#ifndef CONFIG_PREFERENCES_H
#define CONFIG_PREFERENCES_H
#include "config.h"

View File

@ -32,9 +32,14 @@
*
*/
#ifndef CONFIG_SCRIPTS_H
#define CONFIG_SCRIPTS_H
#include <glib.h>
void scripts_init(void);
GSList* scripts_list(void);
GSList* scripts_read(const char *const script);
gboolean scripts_exec(const char *const script);
#endif

View File

@ -32,8 +32,8 @@
*
*/
#ifndef THEME_H
#define THEME_H
#ifndef CONFIG_THEME_H
#define CONFIG_THEME_H
#include "config.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef TLSCERTS_H
#define TLSCERTS_H
#ifndef CONFIG_TLSCERTS_H
#define CONFIG_TLSCERTS_H
typedef struct tls_cert_t {
int version;

View File

@ -32,8 +32,8 @@
*
*/
#ifndef CLIENT_EVENTS_H
#define CLIENT_EVENTS_H
#ifndef EVENT_CLIENT_EVENTS_H
#define EVENT_CLIENT_EVENTS_H
#include "xmpp/xmpp.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef SERVER_EVENTS_H
#define SERVER_EVENTS_H
#ifndef EVENT_SERVER_EVENTS_H
#define EVENT_SERVER_EVENTS_H
#include "xmpp/xmpp.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef OTR_H
#define OTR_H
#ifndef OTR_OTR_H
#define OTR_OTR_H
#include <libotr/proto.h>
#include <libotr/message.h>

View File

@ -32,8 +32,8 @@
*
*/
#ifndef OTRLIB_H
#define OTRLIB_H
#ifndef OTR_OTRLIB_H
#define OTR_OTRLIB_H
OtrlPolicy otrlib_policy(void);

View File

@ -32,8 +32,8 @@
*
*/
#ifndef GPG_H
#define GPG_H
#ifndef PGP_GPG_H
#define PGP_GPG_H
typedef struct pgp_key_t {
char *id;

View File

@ -32,8 +32,8 @@
*
*/
#ifndef API_H
#define API_H
#ifndef PLUGINS_API_H
#define PLUGINS_API_H
#include "plugins/callbacks.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef AUTOCOMPLETERS_H
#define AUTOCOMPLETERS_H
#ifndef PLUGINS_AUTOCOMPLETERS_H
#define PLUGINS_AUTOCOMPLETERS_H
#include <glib.h>

View File

@ -32,6 +32,9 @@
*
*/
#ifndef PLUGINS_C_API_H
#define PLUGINS_C_API_H
#include <glib.h>
void c_api_init(void);
@ -39,3 +42,5 @@ void c_api_init(void);
void c_command_callback(PluginCommand *command, gchar **args);
void c_timed_callback(PluginTimedFunction *timed_function);
void c_window_callback(PluginWindowCallback *window_callback, char *tag, char *line);
#endif

View File

@ -32,8 +32,8 @@
*
*/
#ifndef C_PLUGINS_H
#define C_PLUGINS_H
#ifndef PLUGINS_C_PLUGINS_H
#define PLUGINS_C_PLUGINS_H
#include "plugins/plugins.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef CALLBACKS_H
#define CALLBACKS_H
#ifndef PLUGINS_CALLBACKS_H
#define PLUGINS_CALLBACKS_H
#include <glib.h>

View File

@ -32,8 +32,8 @@
*
*/
#ifndef DISCO_H
#define DISCO_H
#ifndef PLUGINS_DISCO_H
#define PLUGINS_DISCO_H
void disco_add_feature(char *feature);
GList* disco_get_features(void);

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PLUGINS_H
#define PLUGINS_H
#ifndef PLUGINS_PLUGINS_H
#define PLUGINS_PLUGINS_H
#include "command/cmd_defs.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PROF_API_H
#define PROF_API_H
#ifndef PLUGINS_PROF_API_H
#define PLUGINS_PROF_API_H
#define prof_register_command(command_name, min_args, max_args, synopsis, description, arguments, examples, callback) _prof_register_command(__FILE__, command_name, min_args, max_args, synopsis, description, arguments, examples, callback)
#define prof_register_timed(callback, interval_seconds) _prof_register_timed(__FILE__, callback, interval_seconds)

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PYTHON_API_H
#define PYTHON_API_H
#ifndef PLUGINS_PYTHON_API_H
#define PLUGINS_PYTHON_API_H
void python_env_init(void);
void python_init_prof(void);

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PYTHON_PLUGINS_H
#define PYTHON_PLUGINS_H
#ifndef PLUGINS_PYTHON_PLUGINS_H
#define PLUGINS_PYTHON_PLUGINS_H
#include "plugins/plugins.h"

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PLUGIN_SETTINGS_H
#define PLUGIN_SETTINGS_H
#ifndef PLUGINS_SETTINGS_H
#define PLUGINS_SETTINGS_H
void plugin_settings_init(void);
void plugin_settings_close(void);

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PLUGIN_THEMES_H
#define PLUGIN_THEMES_H
#ifndef PLUGINS_THEMES_H
#define PLUGINS_THEMES_H
void plugin_themes_init(void);
void plugin_themes_close(void);

View File

@ -32,8 +32,8 @@
*
*/
#ifndef AUTOCOMPLETE_H
#define AUTOCOMPLETE_H
#ifndef TOOLS_AUTOCOMPLETE_H
#define TOOLS_AUTOCOMPLETE_H
#include <glib.h>

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PARSER_H
#define PARSER_H
#ifndef TOOLS_PARSER_H
#define TOOLS_PARSER_H
#include <glib.h>

View File

@ -32,8 +32,8 @@
*
*/
#ifndef TINYURL_H
#define TINYURL_H
#ifndef TOOLS_TINYURL_H
#define TOOLS_TINYURL_H
#include <glib.h>

View File

@ -32,8 +32,8 @@
*
*/
#ifndef PROFANITY_TRAY_H
#define PROFANITY_TRAY_H
#ifndef TRAY_H
#define TRAY_H
void tray_init(void);
void tray_update(void);

View File

@ -32,8 +32,8 @@
*
*/
#ifndef CHAT_STATE_H
#define CHAT_STATE_H
#ifndef XMPP_CHAT_STATE_H
#define XMPP_CHAT_STATE_H
#include <glib.h>

View File

@ -32,8 +32,8 @@
*
*/
#ifndef FORM_H
#define FORM_H
#ifndef XMPP_FORM_H
#define XMPP_FORM_H
#include "xmpp/xmpp.h"