mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +02:00
Make get_alignment() available outside special-vars.c
This commit is contained in:
parent
97a4ee78fd
commit
f1b5b515b9
2 changed files with 8 additions and 5 deletions
|
|
@ -9,9 +9,16 @@
|
|||
#define PARSE_FLAG_ESCAPE_THEME 0x08 /* if any arguments/variables contain { or } chars, escape them with % */
|
||||
#define PARSE_FLAG_ONLY_ARGS 0x10 /* expand only arguments ($0 $1 etc.) but no other $variables */
|
||||
|
||||
#define ALIGN_RIGHT 0x01
|
||||
#define ALIGN_CUT 0x02
|
||||
#define ALIGN_PAD 0x04
|
||||
|
||||
typedef char* (*SPECIAL_HISTORY_FUNC)
|
||||
(const char *text, void *item, int *free_ret);
|
||||
|
||||
/* Cut and/or pad text so it takes exactly "align" characters on the screen */
|
||||
char *get_alignment(const char *text, int align, int flags, char pad);
|
||||
|
||||
/* Parse and expand text after '$' character. return value has to be
|
||||
g_free()'d if `free_ret' is TRUE. */
|
||||
char *parse_special(char **cmd, SERVER_REC *server, void *item,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue