#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdarg.h>
#include <glib.h>
#include <gmodule.h>
#include "settings.h"
#include "network.h"
#include "util.h"
#include "client.h"
#include "state.h"
#include "linestack.h"
#include "hooks.h"
#include "repl.h"
#include "ctcp.h"
#include "admin.h"
#include "log.h"
#include "isupport.h"
#include "log_support.h"
#include "listener.h"
#include "url.h"
Go to the source code of this file.
Data Structures | |
struct | global |
Global information. More... | |
struct | plugin_ops |
Plugin description. More... | |
Defines | |
#define | CTRLPROXY_PLUGIN_VERSION 4 |
Current version of the plugin API. | |
Typedefs | |
typedef void(* | config_load_notify_fn )(struct global *) |
typedef void(* | config_save_notify_fn )(struct global *, const char *) |
typedef void(* | hup_handler_fn )(void *) |
Functions | |
G_MODULE_EXPORT const char * | ctrlproxy_version (void) |
G_MODULE_EXPORT const char * | get_my_hostname (void) |
G_MODULE_EXPORT void | register_load_config_notify (config_load_notify_fn fn) |
G_MODULE_EXPORT void | register_save_config_notify (config_save_notify_fn fn) |
G_MODULE_EXPORT void | register_hup_handler (hup_handler_fn, void *userdata) |
G_MODULE_EXPORT char * | list_make_string (GList *) |
G_GNUC_PRINTF (3, 4) G_MODULE_EXPORT void log_network_state(enum log_level l | |
struct irc_network_state const char gboolean | rep_g_file_get_contents (const gchar *filename, gchar **contents, gsize *length, GError **error) |
gboolean | rep_g_file_set_contents (const gchar *filename, const gchar *contents, gssize length, GError **error) |
int | rep_g_mkdir_with_parents (const gchar *pathname, int mode) |
g_mkdir_with_parents: : a pathname in the GLib file name encoding : permissions to use for newly created directories | |
gboolean | write_pidfile (const char *filename) |
pid_t | read_pidfile (const char *filename) |
Variables | |
struct irc_network_state * | st |
struct irc_network_state const char * | fmt |
#define CTRLPROXY_PLUGIN_VERSION 4 |
Current version of the plugin API.
int rep_g_mkdir_with_parents | ( | const gchar * | pathname, | |
int | mode | |||
) |
g_mkdir_with_parents: : a pathname in the GLib file name encoding : permissions to use for newly created directories
Create a directory if it doesn't already exist. Create intermediate parent directories as needed, too.
Returns: 0 if the directory already exists, or was successfully created. Returns -1 if an error occurred, with errno set.
Since: 2.8