[PATCH 16/40] odb-helper: add 'enum odb_helper_type'
- From
Christian Couder <christian.couder@gmail.com>
- Date
- Jan 3, 2018, 16:33 UTC
- Message-ID
- <20180103163403.11303-17-chriscool@tuxfamily.org>
- In-Reply-To
- <20180103163403.11303-1-chriscool@tuxfamily.org>
As there will be different kinds of helpers, let's add an "enum odb_helper_type" to tell between the different kinds.
Let's add a field with this type in "struct odb_helper", and set it when reading the config file.
Signed-off-by: Christian Couder <chriscool@tuxfamily.org> --- odb-helper.h | 9 +++++++++ 1 file changed, 9 insertions(+)
diff --git a/odb-helper.h b/odb-helper.h index 90b279c07e..4f2ac5e476 100644 --- a/odb-helper.h +++ b/odb-helper.h @@ -1,9 +1,18 @@ #ifndef ODB_HELPER_H #define ODB_HELPER_H +enum odb_helper_type { + ODB_HELPER_NONE = 0, + ODB_HELPER_GIT_REMOTE, + ODB_HELPER_SCRIPT_CMD, + ODB_HELPER_PROCESS_CMD, + OBJ_HELPER_MAX +}; + struct odb_helper { const char *name; const char *dealer; + enum odb_helper_type type; struct odb_helper_object { unsigned char sha1[20];
-- 2.16.0.rc0.16.g82191dbc6c.dirty