Parcourir la source

Some comments for context types

Serj Kalichev il y a 2 ans
Parent
commit
a1f63f3415
1 fichiers modifiés avec 4 ajouts et 0 suppressions
  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;