Browse Source

Rename clish_config_op_t to clish_config_op_e

Serj Kalichev 8 years ago
parent
commit
a76db95c62
4 changed files with 7 additions and 7 deletions
  1. 3 3
      clish/config.h
  2. 2 2
      clish/config/config.c
  3. 1 1
      clish/config/private.h
  4. 1 1
      plugins/clish/hook_config.c

+ 3 - 3
clish/config.h

@@ -14,7 +14,7 @@ typedef enum {
 	CLISH_CONFIG_SET,
 	CLISH_CONFIG_UNSET,
 	CLISH_CONFIG_DUMP
-} clish_config_op_t;
+} clish_config_op_e;
 
 /*=====================================
  * COMMAND INTERFACE
@@ -32,8 +32,8 @@ void clish_config_dump(const clish_config_t *instance);
 /*-----------------
  * attributes
  *----------------- */
-void clish_config__set_op(clish_config_t *instance, clish_config_op_t op);
-clish_config_op_t clish_config__get_op(const clish_config_t *instance);
+void clish_config__set_op(clish_config_t *instance, clish_config_op_e op);
+clish_config_op_e clish_config__get_op(const clish_config_t *instance);
 void clish_config__set_priority(clish_config_t *instance, unsigned short priority);
 unsigned short clish_config__get_priority(const clish_config_t *instance);
 void clish_config__set_pattern(clish_config_t *instance, const char *pattern);

+ 2 - 2
clish/config/config.c

@@ -63,13 +63,13 @@ void clish_config_delete(clish_config_t *this)
 /*---------------------------------------------------------
  * PUBLIC ATTRIBUTES
  *--------------------------------------------------------- */
-void clish_config__set_op(clish_config_t *this, clish_config_op_t op)
+void clish_config__set_op(clish_config_t *this, clish_config_op_e op)
 {
 	this->op = op;
 }
 
 /*--------------------------------------------------------- */
-clish_config_op_t clish_config__get_op(const clish_config_t *this)
+clish_config_op_e clish_config__get_op(const clish_config_t *this)
 {
 	return this->op;
 }

+ 1 - 1
clish/config/private.h

@@ -8,7 +8,7 @@
  * PRIVATE TYPES
  *--------------------------------------------------------- */
 struct clish_config_s {
-	clish_config_op_t op; /* CONFIG operation */
+	clish_config_op_e op; /* CONFIG operation */
 	unsigned short priority;
 	char *pattern;
 	char *file;

+ 1 - 1
plugins/clish/hook_config.c

@@ -62,7 +62,7 @@ CLISH_HOOK_CONFIG(clish_hook_config)
 	char *str = NULL;
 	char *tstr;
 	char tmp[PATH_MAX + 100];
-	clish_config_op_t op;
+	clish_config_op_e op;
 	unsigned int num;
 	const char *escape_chars = lub_string_esc_quoted;