Mercurial > geeqie.yaz
annotate src/remote.h @ 737:8a8873e7a552
Make shell command and its option rc file options instead of hardcoded strings.
This allows users to modify the shell command that execute "editors".
Two new options appear in rc file:
- shell.path (default to "/bin/sh")
- shell.options (default to "-c")
These options can only be changed from the rc file, not at runtime.
Tests are made to check that shell.path is not empty and lead to
an executable file.
author | zas_ |
---|---|
date | Thu, 22 May 2008 20:22:13 +0000 |
parents | 9bcfd6d7a902 |
children | 4fe8f9656107 |
rev | line source |
---|---|
9 | 1 /* |
196 | 2 * Geeqie |
9 | 3 * (C) 2004 John Ellis |
475 | 4 * Copyright (C) 2008 The Geeqie Team |
9 | 5 * |
6 * Author: John Ellis | |
7 * | |
8 * This software is released under the GNU General Public License (GNU GPL). | |
9 * Please read the included file COPYING for more information. | |
10 * This software comes with no warranty of any kind, use at your own risk! | |
11 */ | |
12 | |
13 | |
14 #ifndef REMOTE_H | |
15 #define REMOTE_H | |
16 | |
17 | |
18 typedef struct _RemoteConnection RemoteConnection; | |
19 | |
20 typedef void RemoteReadFunc(RemoteConnection *rc, const char *text, gpointer data); | |
21 | |
22 struct _RemoteConnection { | |
23 gint server; | |
24 int fd; | |
25 gchar *path; | |
26 | |
27 gint channel_id; | |
28 RemoteReadFunc *read_func; | |
29 gpointer read_data; | |
30 | |
31 GList *clients; | |
32 }; | |
442 | 33 |
34 | |
649 | 35 void remote_close(RemoteConnection *rc); |
652
9bcfd6d7a902
Display a message when invalid remote options are used.
zas_
parents:
649
diff
changeset
|
36 GList *remote_build_list(GList *list, int argc, char *argv[], GList **errors); |
649 | 37 void remote_help(void); |
38 void remote_control(const gchar *arg_exec, GList *remote_list, const gchar *path, | |
39 GList *cmd_list, GList *collection_list); | |
9 | 40 |
649 | 41 RemoteConnection *remote_server_init(gchar *path, CollectionData *command_collection); |
9 | 42 |
43 | |
44 #endif |