Browse Source

Some comments for context types

Serj Kalichev 2 years ago
parent
commit
a1f63f3415
1 changed files with 4 additions and 0 deletions
  1. 4 0
      klish/kcontext_base.h

+ 4 - 0
klish/kcontext_base.h

@@ -13,9 +13,13 @@ typedef struct kcontext_s kcontext_t;
 
 typedef enum {
 	KCONTEXT_NONE,
+	// Context for plugin initialization
 	KCONTEXT_PLUGIN_INIT,
+	// Context for plugin finalization
 	KCONTEXT_PLUGIN_FINI,
+	// Context for command's action
 	KCONTEXT_ACTION,
+	// Context for service actions like PTYPE, COND, etc.
 	KCONTEXT_SERVICE_ACTION,
 } kcontext_type_e;