diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-02-26 04:23:49 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-02-26 06:36:08 +0800 |
commit | 4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb (patch) | |
tree | f5789ef1edf5843d69ce72a9e50e917a6c83fd45 /addressbook/tools/evolution-addressbook-export.h | |
parent | b31f2ad72010e397fa7514b4d61f2adf716f1038 (diff) | |
download | gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar.gz gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.tar.zst gsoc2013-evolution-4d1bf133ce8dd5d46a010f96031d57cb3cb8e9cb.zip |
evolution-addressbook-export: Make ActionContext a struct.
Defining this as a union makes the code needlessly verbose.
Diffstat (limited to 'addressbook/tools/evolution-addressbook-export.h')
-rw-r--r-- | addressbook/tools/evolution-addressbook-export.h | 26 |
1 files changed, 7 insertions, 19 deletions
diff --git a/addressbook/tools/evolution-addressbook-export.h b/addressbook/tools/evolution-addressbook-export.h index 090446b177..ca78eb823e 100644 --- a/addressbook/tools/evolution-addressbook-export.h +++ b/addressbook/tools/evolution-addressbook-export.h @@ -37,30 +37,18 @@ G_BEGIN_DECLS #define DEFAULT_SIZE_NUMBER 100 -union _ActionContext -{ +struct _ActionContext { guint action_type; + gchar *output_file; - struct - { - gint action_type; - gchar *output_file; - } - action_list_folders; - - struct - { - gint action_type; - gchar *output_file; - gint IsCSV; - gint IsVCard; - gchar *addressbook_source_uid; - } - action_list_cards; + /* for cards only */ + gint IsCSV; + gint IsVCard; + gchar *addressbook_source_uid; }; -typedef union _ActionContext ActionContext; +typedef struct _ActionContext ActionContext; /* action_list_folders */ guint action_list_folders_init (ESourceRegistry *registry, |