1
0
mirror of https://github.com/moparisthebest/hexchat synced 2024-11-12 12:25:01 -05:00
hexchat/src/common/text.h

49 lines
1.4 KiB
C
Raw Normal View History

2011-02-23 22:14:30 -05:00
#include "textenums.h"
#ifndef XCHAT_TEXT_H
#define XCHAT_TEXT_H
#define EMIT_SIGNAL(i, sess, a, b, c, d, e) text_emit(i, sess, a, b, c, d)
struct text_event
{
char *name;
char * const *help;
int num_args;
char *def;
};
void scrollback_close (session *sess);
void scrollback_load (session *sess);
int text_word_check (char *word, int len);
void PrintText (session *sess, char *text);
void PrintTextf (session *sess, char *format, ...);
void log_close (session *sess);
void log_open_or_close (session *sess);
void load_text_events (void);
void pevent_save (char *fn);
int pevt_build_string (const char *input, char **output, int *max_arg);
int pevent_load (char *filename);
void pevent_make_pntevts (void);
void text_emit (int index, session *sess, char *a, char *b, char *c, char *d);
int text_emit_by_name (char *name, session *sess, char *a, char *b, char *c, char *d);
#ifdef WIN32
2012-10-13 01:06:38 -04:00
#if 0
char *text_replace_non_bmp (char *utf8_input, int input_length, glong *output_length);
#endif
2012-10-13 01:06:38 -04:00
void text_replace_non_bmp2 (char *utf8_input);
#endif
2011-02-23 22:14:30 -05:00
char *text_validate (char **text, int *len);
int get_stamp_str (char *fmt, time_t tim, char **ret);
void format_event (session *sess, int index, char **args, char *o, int sizeofo, unsigned int stripcolor_args);
char *text_find_format_string (char *name);
void sound_play (const char *file, gboolean quiet);
void sound_play_event (int i);
void sound_beep (session *);
void sound_load ();
void sound_save ();
#endif