summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGluzskiy Alexandr <sss123next@list.ru>2010-11-22 04:34:58 +0200
committerGluzskiy Alexandr <sss123next@list.ru>2010-11-22 04:34:58 +0200
commit01212a19ce05aaa27ff33dae06bed646e7a65535 (patch)
tree7dbc17ae51675e02fcee9b43ffd3c4f0cdee7e69
parentba3095b937bd051ca1438a837245d21db300a0d6 (diff)
new file: api/ec_services.h
-rw-r--r--api/ec_services.h91
1 files changed, 91 insertions, 0 deletions
diff --git a/api/ec_services.h b/api/ec_services.h
new file mode 100644
index 0000000..73f0280
--- /dev/null
+++ b/api/ec_services.h
@@ -0,0 +1,91 @@
+/* Copyright 2010 sss
+ * This file is part of evil_core.
+ *
+ * evil_core is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * evil_core is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with evil_core. If not, see <http://www.gnu.org/licenses/>.*/
+
+/*
+ * this file will contain information about services implemented in core and helper sturctures for calling this services
+*/
+
+/*
+ * Core Servicec
+ */
+
+
+/*
+ * EC/GetPluginList
+ * service returning pointer to following structure on success or 0 on failure,
+ * given pointer should be freed on than not needed anymore,
+ * calling with no argument
+ */
+typedef struct {
+ PLUGININFO **plugins;
+ int count;
+}pluglist;
+
+/*
+ * EC/GetVersionInt
+ * service returning version as long int DWORD encoded
+ * for 01.01.01.01 be 0x01010101
+ * service never failure
+ * calling with no argument
+*/
+
+/*
+ * EC/GetServiceList
+ * service returning list of registered in core servicec as char* array delimited by \n
+ * returning 0 on false
+ * calling with no argument
+ * shoul be freed than its not needed
+ */
+
+ /*
+ * EC/RequestHalt
+ * service request core graceful termination
+ * calling with no arguments
+ * always returning 0
+ */
+
+ /*
+ * End Core Services
+ */
+
+
+ /*
+ * UTF Services
+ */
+
+ /*
+ * EC/toUtf16
+ * service encode given char array to utf16 (wchar_t)
+ * calling with char*
+ * return wchar_t*
+ * result should be freed than it's not needed
+ */
+
+ /*
+ * EC/CHARtoUtf8
+ * service encode given char array to utf8 (char*)
+ * calling with char*
+ * return char*
+ * result should be freed than it's not needed
+ */
+
+ /*
+ * EC/WCHARtoUtf8
+ * service encode given char array to utf8 (char*)
+ * calling with wchar_t*
+ * return char*
+ * result should be freed than it's not needed
+ */ \ No newline at end of file