Debian Codegraph @

mixguile/mixguile_cmd_dispatcher.h

raw symbols SCIP
1 /* -*-c-*- ---------------- mixguile_cmd_dispatcher.h :
2 * Command dispatcher with guile support
3 * ------------------------------------------------------------------
4 * Copyright (C) 2001, 2007 Free Software Foundation, Inc.
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 3 of the License, or
9 * (at your option) any later version.
10 *
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with this program; if not, write to the Free Software
18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
19 *
20 */
21
22
23 #ifndef MIXGUILE_CMD_DISPATCHER_H
24 #define MIXGUILE_CMD_DISPATCHER_H
25
26 #include <mixlib/mix.h>
27 #include <mixlib/mix_vm_command.h>
28
29 /* the guile command dispatcher type */
30 typedef struct mixguile_cmd_dispatcher_t mixguile_cmd_dispatcher_t;
31
32 /* create/destroy cmd dispatcher */
33 extern mixguile_cmd_dispatcher_t *
34 mixguile_cmd_dispatcher_new (mix_vm_cmd_dispatcher_t *dis);
35
36 extern void
37 mixguile_cmd_dispatcher_delete (mixguile_cmd_dispatcher_t *dis);
38
39 /* get the underlying vm dispatcher */
40 extern mix_vm_cmd_dispatcher_t *
41 mixguile_cmd_dispatcher_get_vm_dispatcher (const
42 mixguile_cmd_dispatcher_t *disp);
43
44 /* interpret commands from file or string */
45 extern void
46 mixguile_cmd_dispatcher_interpret_file (mixguile_cmd_dispatcher_t *dis,
47 const gchar *path);
48
49 extern void
50 mixguile_cmd_dispatcher_interpret_command (mixguile_cmd_dispatcher_t *dis,
51 const gchar *command);
52
53
54 #endif /* MIXGUILE_CMD_DISPATCHER_H */
55