Profanity C Plugin API
profapi.h
Go to the documentation of this file.
1 
12 typedef char* PROF_WIN_TAG;
13 
15 typedef void(*CMD_CB)(char **args);
16 
18 typedef void(*TIMED_CB)(void);
19 
21 typedef void(*WINDOW_CB)(PROF_WIN_TAG win, char *line);
22 
24 void prof_cons_alert(void);
25 
31 int prof_cons_show(const char * const message);
32 
42 int prof_cons_show_themed(const char *const group, const char *const item, const char *const def, const char *const message);
43 
49 int prof_cons_bad_cmd_usage(const char *const cmd);
50 
63 void prof_register_command(const char *command_name, int min_args, int max_args,
64  char **synopsis, const char *description, char *arguments[][2], char **examples,
65  CMD_CB callback);
66 
72 void prof_register_timed(TIMED_CB callback, int interval_seconds);
73 
79 void prof_completer_add(const char *key, char **items);
80 
87 void prof_completer_remove(const char *key, char **items);
88 
94 void prof_completer_clear(const char *key);
95 
102 void prof_notify(const char *message, int timeout_ms, const char *category);
103 
108 void prof_send_line(char *line);
109 
114 char* prof_get_current_recipient(void);
115 
120 char* prof_get_current_muc(void);
121 
127 
132 char* prof_get_current_nick(void);
133 
138 char** prof_get_current_occupants(void);
139 
144 void prof_log_debug(const char *message);
145 
150 void prof_log_info(const char *message);
151 
156 void prof_log_warning(const char *message);
157 
162 void prof_log_error(const char *message);
163 
169 void prof_win_create(PROF_WIN_TAG win, WINDOW_CB input_handler);
170 
177 
184 
191 int prof_win_show(PROF_WIN_TAG win, char *message);
192 
203 int prof_win_show_themed(PROF_WIN_TAG tag, char *group, char *key, char *def, char *message);
204 
210 int prof_send_stanza(char *stanza);
211 
220 int prof_settings_boolean_get(char *group, char *key, int def);
221 
229 void prof_settings_boolean_set(char *group, char *key, int value);
230 
239 char* prof_settings_string_get(char *group, char *key, char *def);
240 
248 void prof_settings_string_set(char *group, char *key, char *value);
249 
258 char** prof_settings_string_list_get(char *group, char *key);
259 
268 void prof_settings_string_list_add(char *group, char *key, char *value);
269 
278 int prof_settings_string_list_remove(char *group, char *key, char *value);
279 
287 int prof_settings_string_list_clear(char *group, char *key);
288 
297 int prof_settings_int_get(char *group, char *key, int def);
298 
306 void prof_settings_int_set(char *group, char *key, int value);
307 
314 void prof_incoming_message(char *barejid, char *resource, char *message);
315 
321 void prof_disco_add_feature(char *feature);
void prof_settings_int_set(char *group, char *key, int value)
char * PROF_WIN_TAG
Definition: profapi.h:12
void prof_completer_remove(const char *key, char **items)
void prof_log_warning(const char *message)
void prof_settings_string_list_add(char *group, char *key, char *value)
void prof_register_timed(TIMED_CB callback, int interval_seconds)
void prof_log_debug(const char *message)
void(* WINDOW_CB)(PROF_WIN_TAG win, char *line)
Definition: profapi.h:21
char * prof_settings_string_get(char *group, char *key, char *def)
int prof_settings_boolean_get(char *group, char *key, int def)
char ** prof_settings_string_list_get(char *group, char *key)
void(* TIMED_CB)(void)
Definition: profapi.h:18
void prof_completer_add(const char *key, char **items)
void prof_win_create(PROF_WIN_TAG win, WINDOW_CB input_handler)
char * prof_get_current_nick(void)
void prof_incoming_message(char *barejid, char *resource, char *message)
int prof_settings_string_list_clear(char *group, char *key)
void prof_completer_clear(const char *key)
void prof_send_line(char *line)
char ** prof_get_current_occupants(void)
void prof_disco_add_feature(char *feature)
int prof_cons_show_themed(const char *const group, const char *const item, const char *const def, const char *const message)
int prof_win_exists(PROF_WIN_TAG win)
int prof_settings_int_get(char *group, char *key, int def)
char * prof_get_current_recipient(void)
void(* CMD_CB)(char **args)
Definition: profapi.h:15
int prof_current_win_is_console(void)
int prof_win_focus(PROF_WIN_TAG win)
int prof_win_show_themed(PROF_WIN_TAG tag, char *group, char *key, char *def, char *message)
void prof_register_command(const char *command_name, int min_args, int max_args, char **synopsis, const char *description, char *arguments[][2], char **examples, CMD_CB callback)
void prof_log_error(const char *message)
int prof_send_stanza(char *stanza)
void prof_notify(const char *message, int timeout_ms, const char *category)
char * prof_get_current_muc(void)
int prof_cons_bad_cmd_usage(const char *const cmd)
int prof_settings_string_list_remove(char *group, char *key, char *value)
void prof_log_info(const char *message)
int prof_win_show(PROF_WIN_TAG win, char *message)
void prof_cons_alert(void)
void prof_settings_boolean_set(char *group, char *key, int value)
int prof_cons_show(const char *const message)
void prof_settings_string_set(char *group, char *key, char *value)