Browse Source

lib: Add KTP dir

Serj Kalichev 3 years ago
parent
commit
d25a2514f2
5 changed files with 48 additions and 1 deletions
  1. 1 1
      docs/specification.ru.md
  2. 19 0
      klish/Makefile.am
  3. 26 0
      klish/ktp.h
  4. 2 0
      klish/ktp/Makefile.am
  5. 0 0
      klish/ktp/ktp.c

File diff suppressed because it is too large
+ 1 - 1
docs/specification.ru.md


+ 19 - 0
klish/Makefile.am

@@ -0,0 +1,19 @@
+lib_LTLIBRARIES += libklish.la
+libklish_la_SOURCES =
+libklish_la_LDFLAGS = $(AM_LDFLAGS) $(VERSION_INFO)
+
+#if TESTC
+#libklish_la_CFLAGS += -DTESTC
+#endif
+
+nobase_include_HEADERS += \
+	klish/ktp.h
+
+EXTRA_DIST += \
+	klish/ktp/Makefile.am
+
+include $(top_srcdir)/klish/ktp/Makefile.am
+
+#if TESTC
+#include $(top_srcdir)/klish/testc_module/Makefile.am
+#endif

+ 26 - 0
klish/ktp.h

@@ -0,0 +1,26 @@
+/** @file ktp.h
+ *
+ * @brief Klish Transfer Protocol
+ */
+
+#ifndef _klish_ktp_h
+#define _klish_ktp_h
+
+#include <faux/msg.h>
+
+typedef enum {
+	KTP_NULL = '\0',
+	KTP_STDIN = 'i',
+	KTP_STDOUT = 'o',
+	KTP_STDERR = 'e',
+	KTP_CMD = 'c',
+	KTP_CMD_ACK = 'C',
+	KTP_COMPLETION = 'v',
+	KTP_COMPLETION_ACK = 'V',
+	KTP_HELP = 'h',
+	KTP_HELP_ACK = 'H',
+	KTP_ALERT = 'a',
+	KTP_EXIT = 'x',
+} ktp_cmd_e;
+
+#endif // _klish_ktp_h

+ 2 - 0
klish/ktp/Makefile.am

@@ -0,0 +1,2 @@
+libklish_la_SOURCES += \
+	klish/ktp/ktp.c

+ 0 - 0
klish/ktp/ktp.c


Some files were not shown because too many files changed in this diff