1 /* ------------------------------------------------
\r
2 Copyright 2014 AT&T Intellectual Property
\r
3 Licensed under the Apache License, Version 2.0 (the "License");
\r
4 you may not use this file except in compliance with the License.
\r
5 You may obtain a copy of the License at
\r
7 http://www.apache.org/licenses/LICENSE-2.0
\r
9 Unless required by applicable law or agreed to in writing, software
\r
10 distributed under the License is distributed on an "AS IS" BASIS,
\r
11 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
\r
12 See the License for the specific language governing permissions and
\r
13 limitations under the License.
\r
14 ------------------------------------------- */
\r
15 #ifndef IPCENCODING_H
\r
16 #define IPCENCODING_H
\r
17 #include "gsconfig.h"
\r
18 #include "gstypes.h"
\r
22 #include <gscpipc.h>
\r
23 #include <fta_stat.h>
\r
26 #define FTA_LOOKUP 1
\r
27 #define FTA_ALLOC_INSTANCE 2
\r
28 #define FTA_ALLOC_PRINT_INSTANCE 3
\r
29 #define FTA_FREE_INSTANCE 4
\r
30 #define FTA_CONTROL 5
\r
31 #define FTA_PRODUCER_FAILURE 6
\r
32 #define FTA_HEARTBEAT 7
\r
34 #define GSCP_GET_BUFFER 8
\r
36 #define FTA_REGISTER 9
\r
37 #define FTA_UNREGISTER 10
\r
39 #define PROCESS_CONTROL 11
\r
41 #define RESULT_OPCODE_BASE 128
\r
42 #define STANDARD_RESULT 129
\r
43 #define FTAFIND_RESULT 130
\r
44 #define FTA_RESULT 131
\r
46 /* the following result codes are ignored in standard
\r
47 * processing they are only used when blocking for them
\r
51 #define RESULT_OPCODE_IGNORE 256
\r
55 struct processtate {
\r
58 gs_int32_t buffersize;
\r
59 gs_int32_t deviceid;
\r
64 extern struct processtate curprocess;
\r
72 struct fta_find_arg {
\r
74 gs_int8_t name[MAXFTANAME];
\r
78 struct fta_alloc_instance_arg {
\r
82 gs_int8_t name[MAXFTANAME];
\r
83 gs_int8_t schema[MAXSCHEMASZ];
\r
84 gs_uint32_t reusable;
\r
87 gs_int8_t path[MAXPRINTSTRING];
\r
88 gs_int8_t basename[MAXPRINTSTRING];
\r
89 gs_int8_t temporal_field[MAXPRINTSTRING];
\r
90 gs_int8_t split_field[MAXPRINTSTRING];
\r
96 struct fta_free_instance_arg {
\r
100 gs_uint32_t recursive;
\r
103 struct fta_control_arg {
\r
107 gs_int32_t command;
\r
113 struct fta_notify_producer_failure_arg {
\r
119 struct fta_heartbeat_arg {
\r
122 gs_uint64_t trace_id;
\r
127 struct gscp_get_buffer_arg {
\r
129 gs_int32_t timeout;
\r
132 struct fta_register_arg {
\r
134 gs_uint32_t reusable;
\r
135 gs_int8_t name[MAXFTANAME];
\r
136 gs_int8_t schema[MAXSCHEMASZ];
\r
141 struct fta_unregister_arg {
\r
147 struct tuple_post_arg {
\r
149 gs_int32_t stream_id;
\r
154 struct process_control_arg {
\r
156 gs_int32_t command;
\r
161 struct standard_result {
\r
166 struct wakeup_result {
\r
170 struct timeout_result {
\r
175 struct fta_result {
\r
181 struct ftafind_result {
\r
185 gs_int8_t schema[MAXSCHEMASZ];
\r