aboutsummaryrefslogtreecommitdiffstats
path: root/src/rcyn-protocol.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/rcyn-protocol.h')
-rw-r--r--src/rcyn-protocol.h48
1 files changed, 34 insertions, 14 deletions
diff --git a/src/rcyn-protocol.h b/src/rcyn-protocol.h
index 8640186..553a3df 100644
--- a/src/rcyn-protocol.h
+++ b/src/rcyn-protocol.h
@@ -14,35 +14,37 @@
* See the License for the specific language governing permissions and
* limitations under the License.
*/
-
#pragma once
+/******************************************************************************/
+/******************************************************************************/
+/* IMPLEMENTATION OF COMMON PROTOCOL VALUES, CONSTANTS, PROCESSES */
+/******************************************************************************/
+/******************************************************************************/
+/* predefined protocol strings */
extern const char
_agent_[],
_check_[],
+ _clear_[],
+ _commit_[],
+ _done_[],
_drop_[],
_enter_[],
+ _error_[],
_get_[],
+ _item_[],
_leave_[],
_log_[],
- _rcyn_[],
- _set_[],
- _test_[];
-
-extern const char
- _commit_[],
- _rollback_[];
-
-extern const char
- _clear_[],
- _done_[],
- _error_[],
- _item_[],
_no_[],
_off_[],
_on_[],
+ _rcyn_[],
+ _rollback_[],
+ _set_[],
+ _test_[],
_yes_[];
+/* predefined names */
extern const char
rcyn_default_socket_scheme[],
rcyn_default_socket_dir[],
@@ -53,18 +55,36 @@ extern const char
rcyn_default_admin_socket_spec[],
rcyn_default_agent_socket_spec[];
+/**
+ * Get the socket specification for check usage
+ *
+ * @param value some value or NULL for getting default
+ * @return the socket specification for check usage
+ */
extern
const char *
rcyn_get_socket_check(
const char *value
);
+/**
+ * Get the socket specification for admin usage
+ *
+ * @param value some value or NULL for getting default
+ * @return the socket specification for admin usage
+ */
extern
const char *
rcyn_get_socket_admin(
const char *value
);
+/**
+ * Get the socket specification for agent usage
+ *
+ * @param value some value or NULL for getting default
+ * @return the socket specification for agent usage
+ */
extern
const char *
rcyn_get_socket_agent(