浏览代码

Some comments for context types

Serj Kalichev 2 年之前
父节点
当前提交
a1f63f3415
共有 1 个文件被更改,包括 4 次插入0 次删除
  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;