summaryrefslogtreecommitdiff
path: root/addressbook
diff options
context:
space:
mode:
authorMilan Crha <mcrha@redhat.com>2015-06-04 22:24:50 +0200
committerMilan Crha <mcrha@redhat.com>2015-06-04 22:24:50 +0200
commit9a870829f89be24ce94571715d8001a4956d1fd5 (patch)
tree1ce85eff9a8583a1a7bf1a49a02a7cf311018be3 /addressbook
parentee5da8cc8242889d3706f6c43f21cbe1b146b858 (diff)
downloadevolution-data-server-9a870829f89be24ce94571715d8001a4956d1fd5.tar.gz
Add --factory parameter to factory subprocesses for easier debugging
The argument is not used in the code, it only makes easier debugging, to recognize for which factory the subprocess is run.
Diffstat (limited to 'addressbook')
-rw-r--r--addressbook/libedata-book/evolution-addressbook-factory-subprocess.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/addressbook/libedata-book/evolution-addressbook-factory-subprocess.c b/addressbook/libedata-book/evolution-addressbook-factory-subprocess.c
index 388d52461..53daeb56e 100644
--- a/addressbook/libedata-book/evolution-addressbook-factory-subprocess.c
+++ b/addressbook/libedata-book/evolution-addressbook-factory-subprocess.c
@@ -40,10 +40,12 @@ struct _SubprocessData {
ESubprocessBookFactory *subprocess_book_factory;
};
+static const gchar *factory_name = NULL;
static const gchar *bus_name = NULL;
static const gchar *path = NULL;
static GOptionEntry entries[] = {
+ { "factory", 'f', 0, G_OPTION_ARG_STRING, &factory_name, "Just for easier debugging", NULL },
{ "bus-name", 'b', 0, G_OPTION_ARG_STRING, &bus_name, NULL, NULL },
{ "own-path", 'p', 0, G_OPTION_ARG_STRING, &path, NULL, NULL },
{ NULL }