forked from unixwitch/tts
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.h
33 lines (25 loc) · 797 Bytes
/
commands.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
/*
* TTS - track your time.
* Copyright (c) 2012-2014 Felicity Tarnell.
*
* Permission is granted to anyone to use this software for any purpose,
* including commercial applications, and to alter it and redistribute it
* freely. This software is provided 'as-is', without any express or implied
* warranty.
*/
#ifndef TTS_COMMANDS_H
#define TTS_COMMANDS_H
#include <stdarg.h>
#include "wide.h"
typedef struct command {
const wchar_t *cm_name;
void (*cm_hdl) (size_t, wchar_t **);
} command_t;
command_t *find_command(const wchar_t *);
void c_bind (size_t, wchar_t **);
void c_style (size_t, wchar_t **);
void c_set (size_t, wchar_t **);
void c_macro (size_t, wchar_t **);
void cmderr (const wchar_t *, ...);
void vcmderr (const wchar_t *, va_list);
#endif /* !TTS_COMMANDS_H */