| 1 | /* |
|---|
| 2 | * Please do not edit this file. |
|---|
| 3 | * It was generated using rpcgen. |
|---|
| 4 | */ |
|---|
| 5 | |
|---|
| 6 | #ifndef _FEP_H_RPCGEN |
|---|
| 7 | #define _FEP_H_RPCGEN |
|---|
| 8 | |
|---|
| 9 | #include <rpc/rpc.h> |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | #ifdef __cplusplus |
|---|
| 13 | extern "C" { |
|---|
| 14 | #endif |
|---|
| 15 | |
|---|
| 16 | /* RPC HDR test */ |
|---|
| 17 | #ifndef FEP_PROGRAM |
|---|
| 18 | #define MAXDEVLEN 32 |
|---|
| 19 | #define _MAXSHORTMESSAGELEN 128 |
|---|
| 20 | #define _MAXLONGMESSAGELEN 1024 |
|---|
| 21 | #define _MAXSHORTPOLLS 20 |
|---|
| 22 | #define _MAXLONGPOLLS 2 |
|---|
| 23 | #define _MAXPOLLRETRY 2 |
|---|
| 24 | #define _MAXSHORTREPLYLEN 128 |
|---|
| 25 | #define _MAXLONGREPLYLEN 1024 |
|---|
| 26 | #define MAXADDRLEN 64 |
|---|
| 27 | #define MAXSHORTMESSAGELEN _MAXSHORTMESSAGELEN |
|---|
| 28 | #define MAXLONGMESSAGELEN _MAXLONGMESSAGELEN |
|---|
| 29 | #define MAXSHORTPOLLS _MAXSHORTPOLLS |
|---|
| 30 | #define MAXLONGPOLLS _MAXLONGPOLLS |
|---|
| 31 | #define MAXPOLLRETRY _MAXPOLLRETRY |
|---|
| 32 | #define MAXSHORTREPLYLEN _MAXSHORTREPLYLEN |
|---|
| 33 | #define MAXLONGREPLYLEN _MAXLONGREPLYLEN |
|---|
| 34 | |
|---|
| 35 | enum errorstatus { |
|---|
| 36 | FEP_OK = 0, |
|---|
| 37 | FEP_OUTOFRANGE = 1, |
|---|
| 38 | FEP_BADHANDLE = 2, |
|---|
| 39 | FEP_NOREPLY = 3, |
|---|
| 40 | FEP_SCHBUSY = 4, |
|---|
| 41 | FEP_LINEBUSY = 5, |
|---|
| 42 | FEP_REPORTBUSY = 6, |
|---|
| 43 | FEP_NOREPORT = 7, |
|---|
| 44 | FEP_NOMEMORY = 8, |
|---|
| 45 | FEP_BADTIME = 9, |
|---|
| 46 | FEP_BADTIMESYNCH = 10, |
|---|
| 47 | FEP_BADKIND = 11, |
|---|
| 48 | FEP_BADCONNECT = 12, |
|---|
| 49 | FEP_NOAUTHORITY = 13, |
|---|
| 50 | }; |
|---|
| 51 | typedef enum errorstatus errorstatus; |
|---|
| 52 | |
|---|
| 53 | enum Polling_FSM_States { |
|---|
| 54 | INITSTATE = 0x01, |
|---|
| 55 | WRALARMSTATE = 0x10, |
|---|
| 56 | CLRSTATE = 0x20, |
|---|
| 57 | RTSONSTATE = 0x30, |
|---|
| 58 | CTSSTATE = 0x40, |
|---|
| 59 | WRITESTATE = 0x50, |
|---|
| 60 | RTSOFFSTATE = 0x60, |
|---|
| 61 | RDALARMSTATE = 0x70, |
|---|
| 62 | RDSTATE = 0x80, |
|---|
| 63 | DONESTATE = 0x00, |
|---|
| 64 | }; |
|---|
| 65 | typedef enum Polling_FSM_States Polling_FSM_States; |
|---|
| 66 | |
|---|
| 67 | struct fep_lineinfo { |
|---|
| 68 | int lineinfo; |
|---|
| 69 | char device[MAXDEVLEN]; |
|---|
| 70 | int poll; |
|---|
| 71 | int command; |
|---|
| 72 | int sync; |
|---|
| 73 | int line_error_count; |
|---|
| 74 | int pid; |
|---|
| 75 | int semaphore; |
|---|
| 76 | int debug; |
|---|
| 77 | }; |
|---|
| 78 | typedef struct fep_lineinfo fep_lineinfo; |
|---|
| 79 | |
|---|
| 80 | struct lineinfo_ret { |
|---|
| 81 | errorstatus status; |
|---|
| 82 | union { |
|---|
| 83 | fep_lineinfo info; |
|---|
| 84 | } lineinfo_ret_u; |
|---|
| 85 | }; |
|---|
| 86 | typedef struct lineinfo_ret lineinfo_ret; |
|---|
| 87 | |
|---|
| 88 | struct fep_std_time { |
|---|
| 89 | int year; |
|---|
| 90 | int month; |
|---|
| 91 | int day; |
|---|
| 92 | int hour; |
|---|
| 93 | int minute; |
|---|
| 94 | int second; |
|---|
| 95 | long time_t; |
|---|
| 96 | }; |
|---|
| 97 | typedef struct fep_std_time fep_std_time; |
|---|
| 98 | |
|---|
| 99 | struct std_time_ret { |
|---|
| 100 | errorstatus status; |
|---|
| 101 | union { |
|---|
| 102 | fep_std_time info; |
|---|
| 103 | } std_time_ret_u; |
|---|
| 104 | }; |
|---|
| 105 | typedef struct std_time_ret std_time_ret; |
|---|
| 106 | |
|---|
| 107 | enum protocoltype { |
|---|
| 108 | DEFAULT = 0, |
|---|
| 109 | SATMSPROT = 1, |
|---|
| 110 | SDRMSPROT = 2, |
|---|
| 111 | INACTIVE = 3, |
|---|
| 112 | CLEARPROT = 4, |
|---|
| 113 | CMS500PROT = 5, |
|---|
| 114 | CMSHPPROT = 6, |
|---|
| 115 | TIMESYNCPOLL = 7, |
|---|
| 116 | }; |
|---|
| 117 | typedef enum protocoltype protocoltype; |
|---|
| 118 | |
|---|
| 119 | enum duplex { |
|---|
| 120 | HALFDUPLEX = 0, |
|---|
| 121 | FULLDUPLEX = 1, |
|---|
| 122 | }; |
|---|
| 123 | typedef enum duplex duplex; |
|---|
| 124 | |
|---|
| 125 | struct fep_poll_info { |
|---|
| 126 | int D7_update; |
|---|
| 127 | protocoltype protocol; |
|---|
| 128 | int poll_user_info1; |
|---|
| 129 | int poll_user_info2; |
|---|
| 130 | int format; |
|---|
| 131 | int speed; |
|---|
| 132 | int mode; |
|---|
| 133 | int min_separation; |
|---|
| 134 | int delay_rts_on; |
|---|
| 135 | int max_send; |
|---|
| 136 | int delay_rts_off; |
|---|
| 137 | int max_reply; |
|---|
| 138 | int min_error; |
|---|
| 139 | int max_retry; |
|---|
| 140 | int reply_len; |
|---|
| 141 | int poll_error_count; |
|---|
| 142 | }; |
|---|
| 143 | typedef struct fep_poll_info fep_poll_info; |
|---|
| 144 | |
|---|
| 145 | struct fep_poll_short_msg { |
|---|
| 146 | int message_len; |
|---|
| 147 | char message[MAXSHORTMESSAGELEN]; |
|---|
| 148 | }; |
|---|
| 149 | typedef struct fep_poll_short_msg fep_poll_short_msg; |
|---|
| 150 | |
|---|
| 151 | struct fep_shortpoll { |
|---|
| 152 | fep_poll_info info; |
|---|
| 153 | fep_poll_short_msg msg; |
|---|
| 154 | }; |
|---|
| 155 | typedef struct fep_shortpoll fep_shortpoll; |
|---|
| 156 | |
|---|
| 157 | struct fep_shortpoll_list { |
|---|
| 158 | int count; |
|---|
| 159 | fep_shortpoll polls[MAXSHORTPOLLS]; |
|---|
| 160 | }; |
|---|
| 161 | typedef struct fep_shortpoll_list fep_shortpoll_list; |
|---|
| 162 | |
|---|
| 163 | struct fep_poll_long_msg { |
|---|
| 164 | int message_len; |
|---|
| 165 | char message[MAXLONGMESSAGELEN]; |
|---|
| 166 | }; |
|---|
| 167 | typedef struct fep_poll_long_msg fep_poll_long_msg; |
|---|
| 168 | |
|---|
| 169 | struct fep_longpoll { |
|---|
| 170 | fep_poll_info info; |
|---|
| 171 | fep_poll_long_msg msg; |
|---|
| 172 | }; |
|---|
| 173 | typedef struct fep_longpoll fep_longpoll; |
|---|
| 174 | |
|---|
| 175 | struct fep_longpoll_list { |
|---|
| 176 | int count; |
|---|
| 177 | fep_longpoll polls[MAXLONGPOLLS]; |
|---|
| 178 | }; |
|---|
| 179 | typedef struct fep_longpoll_list fep_longpoll_list; |
|---|
| 180 | |
|---|
| 181 | enum poll_length { |
|---|
| 182 | SHORTPOLL = 0, |
|---|
| 183 | LONGPOLL = 1, |
|---|
| 184 | }; |
|---|
| 185 | typedef enum poll_length poll_length; |
|---|
| 186 | |
|---|
| 187 | struct fep_poll_list { |
|---|
| 188 | int size; |
|---|
| 189 | union { |
|---|
| 190 | fep_shortpoll_list shortp; |
|---|
| 191 | fep_longpoll_list longp; |
|---|
| 192 | } fep_poll_list_u; |
|---|
| 193 | }; |
|---|
| 194 | typedef struct fep_poll_list fep_poll_list; |
|---|
| 195 | |
|---|
| 196 | enum polltype { |
|---|
| 197 | POLL = 0, |
|---|
| 198 | COMMAND = 1, |
|---|
| 199 | TIMESYNC = 2, |
|---|
| 200 | }; |
|---|
| 201 | typedef enum polltype polltype; |
|---|
| 202 | |
|---|
| 203 | enum commandtype { |
|---|
| 204 | AFTERPOLL = 0, |
|---|
| 205 | BEFOREPOLL = 1, |
|---|
| 206 | IMMEDIATE = 2, |
|---|
| 207 | }; |
|---|
| 208 | typedef enum commandtype commandtype; |
|---|
| 209 | |
|---|
| 210 | enum schedulestatus { |
|---|
| 211 | IDLE = 0, |
|---|
| 212 | ACTIVE = 1, |
|---|
| 213 | COMPLETE = 2, |
|---|
| 214 | }; |
|---|
| 215 | typedef enum schedulestatus schedulestatus; |
|---|
| 216 | |
|---|
| 217 | struct fep_schedule { |
|---|
| 218 | int schedule; |
|---|
| 219 | int lineinfo; |
|---|
| 220 | polltype kind; |
|---|
| 221 | commandtype priority; |
|---|
| 222 | protocoltype protocol; |
|---|
| 223 | fep_std_time time; |
|---|
| 224 | int interval; |
|---|
| 225 | long at_time; |
|---|
| 226 | int user_info1; |
|---|
| 227 | int user_info2; |
|---|
| 228 | int system_key; |
|---|
| 229 | int next; |
|---|
| 230 | int previous; |
|---|
| 231 | int report; |
|---|
| 232 | int sequence; |
|---|
| 233 | int status; |
|---|
| 234 | int retry; |
|---|
| 235 | fep_poll_list fep_polls; |
|---|
| 236 | }; |
|---|
| 237 | typedef struct fep_schedule fep_schedule; |
|---|
| 238 | |
|---|
| 239 | enum answererror { |
|---|
| 240 | ERR_BSCF_ERR = -1, |
|---|
| 241 | ERR_NONE = 0, |
|---|
| 242 | ERR_MSG_LEN = 2, |
|---|
| 243 | ERR_MSG_HDR = 3, |
|---|
| 244 | ERR_MSG_CHKSUM = 4, |
|---|
| 245 | ERR_MSG_TRAILER = 5, |
|---|
| 246 | }; |
|---|
| 247 | typedef enum answererror answererror; |
|---|
| 248 | |
|---|
| 249 | struct fep_pollerror { |
|---|
| 250 | answererror msgerror; |
|---|
| 251 | Polling_FSM_States state; |
|---|
| 252 | int perrno; |
|---|
| 253 | int termination; |
|---|
| 254 | int count; |
|---|
| 255 | }; |
|---|
| 256 | typedef struct fep_pollerror fep_pollerror; |
|---|
| 257 | |
|---|
| 258 | enum replystatus { |
|---|
| 259 | FAILURE = 2, |
|---|
| 260 | DONE = 1, |
|---|
| 261 | UNUSED = 3, |
|---|
| 262 | }; |
|---|
| 263 | typedef enum replystatus replystatus; |
|---|
| 264 | |
|---|
| 265 | struct fep_answer_info { |
|---|
| 266 | long poll_time; |
|---|
| 267 | replystatus status; |
|---|
| 268 | int poll_user_info1; |
|---|
| 269 | int poll_user_info2; |
|---|
| 270 | int retries; |
|---|
| 271 | int poll_error_count; |
|---|
| 272 | fep_pollerror pollerror[MAXPOLLRETRY]; |
|---|
| 273 | }; |
|---|
| 274 | typedef struct fep_answer_info fep_answer_info; |
|---|
| 275 | |
|---|
| 276 | struct fep_answer_short_msg { |
|---|
| 277 | int message_len; |
|---|
| 278 | char message[MAXSHORTREPLYLEN]; |
|---|
| 279 | }; |
|---|
| 280 | typedef struct fep_answer_short_msg fep_answer_short_msg; |
|---|
| 281 | |
|---|
| 282 | struct fep_shortanswer { |
|---|
| 283 | fep_answer_info info; |
|---|
| 284 | fep_answer_short_msg msg; |
|---|
| 285 | }; |
|---|
| 286 | typedef struct fep_shortanswer fep_shortanswer; |
|---|
| 287 | |
|---|
| 288 | struct fep_shortanswer_list { |
|---|
| 289 | int count; |
|---|
| 290 | fep_shortanswer answers[MAXSHORTPOLLS]; |
|---|
| 291 | }; |
|---|
| 292 | typedef struct fep_shortanswer_list fep_shortanswer_list; |
|---|
| 293 | |
|---|
| 294 | struct fep_answer_long_msg { |
|---|
| 295 | int message_len; |
|---|
| 296 | char message[MAXLONGREPLYLEN]; |
|---|
| 297 | }; |
|---|
| 298 | typedef struct fep_answer_long_msg fep_answer_long_msg; |
|---|
| 299 | |
|---|
| 300 | struct fep_longanswer { |
|---|
| 301 | fep_answer_info info; |
|---|
| 302 | fep_answer_long_msg msg; |
|---|
| 303 | }; |
|---|
| 304 | typedef struct fep_longanswer fep_longanswer; |
|---|
| 305 | |
|---|
| 306 | struct fep_longanswer_list { |
|---|
| 307 | int count; |
|---|
| 308 | fep_longanswer answers[MAXLONGPOLLS]; |
|---|
| 309 | }; |
|---|
| 310 | typedef struct fep_longanswer_list fep_longanswer_list; |
|---|
| 311 | |
|---|
| 312 | struct fep_answer_list { |
|---|
| 313 | int size; |
|---|
| 314 | union { |
|---|
| 315 | fep_shortanswer_list shortp; |
|---|
| 316 | fep_longanswer_list longp; |
|---|
| 317 | } fep_answer_list_u; |
|---|
| 318 | }; |
|---|
| 319 | typedef struct fep_answer_list fep_answer_list; |
|---|
| 320 | |
|---|
| 321 | enum replykind { |
|---|
| 322 | POLLREPLY = 0, |
|---|
| 323 | SCHEDNEW = 1, |
|---|
| 324 | SCHEDDONE = 2, |
|---|
| 325 | }; |
|---|
| 326 | typedef enum replykind replykind; |
|---|
| 327 | |
|---|
| 328 | struct fep_reply { |
|---|
| 329 | int reply; |
|---|
| 330 | int schedule; |
|---|
| 331 | int lineinfo; |
|---|
| 332 | polltype kind; |
|---|
| 333 | replykind flag; |
|---|
| 334 | int schedule_sequence; |
|---|
| 335 | int global_sequence; |
|---|
| 336 | long schedule_time; |
|---|
| 337 | int user_info1; |
|---|
| 338 | int user_info2; |
|---|
| 339 | int system_key; |
|---|
| 340 | struct fep_answer_list answers; |
|---|
| 341 | }; |
|---|
| 342 | typedef struct fep_reply fep_reply; |
|---|
| 343 | |
|---|
| 344 | struct schedule_ret { |
|---|
| 345 | errorstatus status; |
|---|
| 346 | union { |
|---|
| 347 | fep_schedule info; |
|---|
| 348 | } schedule_ret_u; |
|---|
| 349 | }; |
|---|
| 350 | typedef struct schedule_ret schedule_ret; |
|---|
| 351 | |
|---|
| 352 | struct fep_reply_request { |
|---|
| 353 | int schedule; |
|---|
| 354 | int sequence; |
|---|
| 355 | int block; |
|---|
| 356 | }; |
|---|
| 357 | typedef struct fep_reply_request fep_reply_request; |
|---|
| 358 | |
|---|
| 359 | struct reply_ret { |
|---|
| 360 | errorstatus status; |
|---|
| 361 | union { |
|---|
| 362 | fep_reply info; |
|---|
| 363 | } reply_ret_u; |
|---|
| 364 | }; |
|---|
| 365 | typedef struct reply_ret reply_ret; |
|---|
| 366 | |
|---|
| 367 | struct init_form { |
|---|
| 368 | char host[10]; |
|---|
| 369 | int config; |
|---|
| 370 | }; |
|---|
| 371 | typedef struct init_form init_form; |
|---|
| 372 | |
|---|
| 373 | struct fep_setschedule { |
|---|
| 374 | int lineinfo; |
|---|
| 375 | int schedule; |
|---|
| 376 | int debug; |
|---|
| 377 | }; |
|---|
| 378 | typedef struct fep_setschedule fep_setschedule; |
|---|
| 379 | |
|---|
| 380 | enum statusflags { |
|---|
| 381 | ENABLED_FLAG = 1, |
|---|
| 382 | POLL_FLAG = 2, |
|---|
| 383 | TIME_FLAG = 4, |
|---|
| 384 | CMD_FLAG = 8, |
|---|
| 385 | }; |
|---|
| 386 | typedef enum statusflags statusflags; |
|---|
| 387 | |
|---|
| 388 | struct fep_lineop { |
|---|
| 389 | int lineinfo; |
|---|
| 390 | int flags; |
|---|
| 391 | int modem_signals; |
|---|
| 392 | }; |
|---|
| 393 | typedef struct fep_lineop fep_lineop; |
|---|
| 394 | |
|---|
| 395 | enum ipprotocol { |
|---|
| 396 | TCPPROT = 0, |
|---|
| 397 | UDPPROT = 1, |
|---|
| 398 | }; |
|---|
| 399 | typedef enum ipprotocol ipprotocol; |
|---|
| 400 | |
|---|
| 401 | enum action { |
|---|
| 402 | REP = 0, |
|---|
| 403 | LOG = 1, |
|---|
| 404 | }; |
|---|
| 405 | typedef enum action action; |
|---|
| 406 | |
|---|
| 407 | enum portstatus { |
|---|
| 408 | NOCONNECTION = 0, |
|---|
| 409 | CONNECTION = 1, |
|---|
| 410 | FAILED = 2, |
|---|
| 411 | }; |
|---|
| 412 | typedef enum portstatus portstatus; |
|---|
| 413 | |
|---|
| 414 | struct fep_report { |
|---|
| 415 | int report; |
|---|
| 416 | char dest[MAXADDRLEN]; |
|---|
| 417 | char logfile[MAXADDRLEN]; |
|---|
| 418 | char monitor[MAXADDRLEN]; |
|---|
| 419 | int port; |
|---|
| 420 | ipprotocol protocol; |
|---|
| 421 | int update; |
|---|
| 422 | action action; |
|---|
| 423 | int reconnect; |
|---|
| 424 | portstatus status; |
|---|
| 425 | int perrno; |
|---|
| 426 | int debug; |
|---|
| 427 | int pid; |
|---|
| 428 | int semaphore; |
|---|
| 429 | }; |
|---|
| 430 | typedef struct fep_report fep_report; |
|---|
| 431 | |
|---|
| 432 | struct report_ret { |
|---|
| 433 | errorstatus status; |
|---|
| 434 | union { |
|---|
| 435 | fep_report info; |
|---|
| 436 | } report_ret_u; |
|---|
| 437 | }; |
|---|
| 438 | typedef struct report_ret report_ret; |
|---|
| 439 | #define fep_getlineinfocount fep_getlineinfocount ## _ ## 32 |
|---|
| 440 | #define fep_getlineinfo fep_getlineinfo ## _ ## 32 |
|---|
| 441 | #define fep_getlineinfovalue fep_getlineinfovalue ## _ ## 32 |
|---|
| 442 | #define fep_sendlineinfo fep_sendlineinfo ## _ ## 32 |
|---|
| 443 | #define fep_gettime fep_gettime ## _ ## 32 |
|---|
| 444 | #define fep_settime fep_settime ## _ ## 32 |
|---|
| 445 | #define fep_advancetime fep_advancetime ## _ ## 32 |
|---|
| 446 | #define fep_getschedulecount fep_getschedulecount ## _ ## 32 |
|---|
| 447 | #define fep_getschedule fep_getschedule ## _ ## 32 |
|---|
| 448 | #define fep_getschedulevalue fep_getschedulevalue ## _ ## 32 |
|---|
| 449 | #define fep_sendschedule fep_sendschedule ## _ ## 32 |
|---|
| 450 | #define fep_setlinemgr_schedule fep_setlinemgr_schedule ## _ ## 32 |
|---|
| 451 | #define fep_free_schedule fep_free_schedule ## _ ## 32 |
|---|
| 452 | #define fep_updateschedule fep_updateschedule ## _ ## 32 |
|---|
| 453 | #define fep_idleline fep_idleline ## _ ## 32 |
|---|
| 454 | #define fep_modemsignals fep_modemsignals ## _ ## 32 |
|---|
| 455 | #define fep_getreply fep_getreply ## _ ## 32 |
|---|
| 456 | #define fep_clearreply fep_clearreply ## _ ## 32 |
|---|
| 457 | #define fep_getreportcount fep_getreportcount ## _ ## 32 |
|---|
| 458 | #define fep_getreport fep_getreport ## _ ## 32 |
|---|
| 459 | #define fep_getreportvalue fep_getreportvalue ## _ ## 32 |
|---|
| 460 | #define fep_sendreport fep_sendreport ## _ ## 32 |
|---|
| 461 | #define fep_reply_xfer fep_reply_xfer ## _ ## 32 |
|---|
| 462 | #define fep_schedule_xfer fep_schedule_xfer ## _ ## 32 |
|---|
| 463 | #define fep_fake_reply fep_fake_reply ## _ ## 32 |
|---|
| 464 | #define fep_set_debug fep_set_debug ## _ ## 32 |
|---|
| 465 | #define fep_get_stack_left fep_get_stack_left ## _ ## 32 |
|---|
| 466 | #define fep_setlmdebug fep_setlmdebug ## _ ## 32 |
|---|
| 467 | #define fep_shutdown fep_shutdown ## _ ## 32 |
|---|
| 468 | #define fep_initsystem fep_initsystem ## _ ## 32 |
|---|
| 469 | #define fep_initrealix fep_initrealix ## _ ## 32 |
|---|
| 470 | /* RPC HDR test */ |
|---|
| 471 | #endif |
|---|
| 472 | |
|---|
| 473 | /* #define FEP_PROGRAM 100090 */ |
|---|
| 474 | #define FEP_PROGRAM 103121 |
|---|
| 475 | #define FEP_VERSION 32 |
|---|
| 476 | |
|---|
| 477 | #if defined(__STDC__) || defined(__cplusplus) |
|---|
| 478 | #define FEP_GETLINEINFOCOUNT 1 |
|---|
| 479 | extern int * fep_getlineinfocount_32(void *, CLIENT *); |
|---|
| 480 | extern int * fep_getlineinfocount_32_svc(void *, struct svc_req *); |
|---|
| 481 | #define FEP_GETLINEINFO 2 |
|---|
| 482 | extern lineinfo_ret * fep_getlineinfo_32(int *, CLIENT *); |
|---|
| 483 | extern lineinfo_ret * fep_getlineinfo_32_svc(int *, struct svc_req *); |
|---|
| 484 | #define FEP_GETLINEINFOVALUE 3 |
|---|
| 485 | extern lineinfo_ret * fep_getlineinfovalue_32(int *, CLIENT *); |
|---|
| 486 | extern lineinfo_ret * fep_getlineinfovalue_32_svc(int *, struct svc_req *); |
|---|
| 487 | #define FEP_SENDLINEINFO 4 |
|---|
| 488 | extern lineinfo_ret * fep_sendlineinfo_32(fep_lineinfo *, CLIENT *); |
|---|
| 489 | extern lineinfo_ret * fep_sendlineinfo_32_svc(fep_lineinfo *, struct svc_req *); |
|---|
| 490 | #define FEP_GETTIME 5 |
|---|
| 491 | extern std_time_ret * fep_gettime_32(void *, CLIENT *); |
|---|
| 492 | extern std_time_ret * fep_gettime_32_svc(void *, struct svc_req *); |
|---|
| 493 | #define FEP_SETTIME 6 |
|---|
| 494 | extern std_time_ret * fep_settime_32(fep_std_time *, CLIENT *); |
|---|
| 495 | extern std_time_ret * fep_settime_32_svc(fep_std_time *, struct svc_req *); |
|---|
| 496 | #define FEP_ADVANCETIME 7 |
|---|
| 497 | extern std_time_ret * fep_advancetime_32(int *, CLIENT *); |
|---|
| 498 | extern std_time_ret * fep_advancetime_32_svc(int *, struct svc_req *); |
|---|
| 499 | #define FEP_GETSCHEDULECOUNT 8 |
|---|
| 500 | extern int * fep_getschedulecount_32(void *, CLIENT *); |
|---|
| 501 | extern int * fep_getschedulecount_32_svc(void *, struct svc_req *); |
|---|
| 502 | #define FEP_GETSCHEDULE 9 |
|---|
| 503 | extern schedule_ret * fep_getschedule_32(int *, CLIENT *); |
|---|
| 504 | extern schedule_ret * fep_getschedule_32_svc(int *, struct svc_req *); |
|---|
| 505 | #define FEP_GETSCHEDULEVALUE 10 |
|---|
| 506 | extern schedule_ret * fep_getschedulevalue_32(int *, CLIENT *); |
|---|
| 507 | extern schedule_ret * fep_getschedulevalue_32_svc(int *, struct svc_req *); |
|---|
| 508 | #define FEP_SENDSCHEDULE 11 |
|---|
| 509 | extern schedule_ret * fep_sendschedule_32(fep_schedule *, CLIENT *); |
|---|
| 510 | extern schedule_ret * fep_sendschedule_32_svc(fep_schedule *, struct svc_req *); |
|---|
| 511 | #define FEP_SETLINEMGR_SCHEDULE 12 |
|---|
| 512 | extern errorstatus * fep_setlinemgr_schedule_32(fep_setschedule *, CLIENT *); |
|---|
| 513 | extern errorstatus * fep_setlinemgr_schedule_32_svc(fep_setschedule *, struct svc_req *); |
|---|
| 514 | #define FEP_FREE_SCHEDULE 13 |
|---|
| 515 | extern errorstatus * fep_free_schedule_32(int *, CLIENT *); |
|---|
| 516 | extern errorstatus * fep_free_schedule_32_svc(int *, struct svc_req *); |
|---|
| 517 | #define FEP_IDLELINE 14 |
|---|
| 518 | extern errorstatus * fep_idleline_32(fep_lineop *, CLIENT *); |
|---|
| 519 | extern errorstatus * fep_idleline_32_svc(fep_lineop *, struct svc_req *); |
|---|
| 520 | #define FEP_MODEMSIGNALS 15 |
|---|
| 521 | extern errorstatus * fep_modemsignals_32(fep_lineop *, CLIENT *); |
|---|
| 522 | extern errorstatus * fep_modemsignals_32_svc(fep_lineop *, struct svc_req *); |
|---|
| 523 | #define FEP_GETREPLY 16 |
|---|
| 524 | extern reply_ret * fep_getreply_32(fep_reply_request *, CLIENT *); |
|---|
| 525 | extern reply_ret * fep_getreply_32_svc(fep_reply_request *, struct svc_req *); |
|---|
| 526 | #define FEP_CLEARREPLY 17 |
|---|
| 527 | extern errorstatus * fep_clearreply_32(void *, CLIENT *); |
|---|
| 528 | extern errorstatus * fep_clearreply_32_svc(void *, struct svc_req *); |
|---|
| 529 | #define FEP_UPDATESCHEDULE 18 |
|---|
| 530 | extern schedule_ret * fep_updateschedule_32(fep_schedule *, CLIENT *); |
|---|
| 531 | extern schedule_ret * fep_updateschedule_32_svc(fep_schedule *, struct svc_req *); |
|---|
| 532 | #define FEP_GETREPORTCOUNT 20 |
|---|
| 533 | extern int * fep_getreportcount_32(void *, CLIENT *); |
|---|
| 534 | extern int * fep_getreportcount_32_svc(void *, struct svc_req *); |
|---|
| 535 | #define FEP_GETREPORT 21 |
|---|
| 536 | extern report_ret * fep_getreport_32(int *, CLIENT *); |
|---|
| 537 | extern report_ret * fep_getreport_32_svc(int *, struct svc_req *); |
|---|
| 538 | #define FEP_GETREPORTVALUE 22 |
|---|
| 539 | extern report_ret * fep_getreportvalue_32(int *, CLIENT *); |
|---|
| 540 | extern report_ret * fep_getreportvalue_32_svc(int *, struct svc_req *); |
|---|
| 541 | #define FEP_SENDREPORT 23 |
|---|
| 542 | extern report_ret * fep_sendreport_32(fep_report *, CLIENT *); |
|---|
| 543 | extern report_ret * fep_sendreport_32_svc(fep_report *, struct svc_req *); |
|---|
| 544 | #define FEP_REPLY_XFER 30 |
|---|
| 545 | extern void * fep_reply_xfer_32(fep_reply *, CLIENT *); |
|---|
| 546 | extern void * fep_reply_xfer_32_svc(fep_reply *, struct svc_req *); |
|---|
| 547 | #define FEP_SET_DEBUG 36 |
|---|
| 548 | extern errorstatus * fep_set_debug_32(int *, CLIENT *); |
|---|
| 549 | extern errorstatus * fep_set_debug_32_svc(int *, struct svc_req *); |
|---|
| 550 | #define FEP_GET_STACK_LEFT 37 |
|---|
| 551 | extern int * fep_get_stack_left_32(void *, CLIENT *); |
|---|
| 552 | extern int * fep_get_stack_left_32_svc(void *, struct svc_req *); |
|---|
| 553 | #define FEP_SETLMDEBUG 38 |
|---|
| 554 | extern errorstatus * fep_setlmdebug_32(fep_setschedule *, CLIENT *); |
|---|
| 555 | extern errorstatus * fep_setlmdebug_32_svc(fep_setschedule *, struct svc_req *); |
|---|
| 556 | #define FEP_SHUTDOWN 39 |
|---|
| 557 | extern errorstatus * fep_shutdown_32(void *, CLIENT *); |
|---|
| 558 | extern errorstatus * fep_shutdown_32_svc(void *, struct svc_req *); |
|---|
| 559 | #define FEP_INITSYSTEM 40 |
|---|
| 560 | extern int * fep_initsystem_32(int *, CLIENT *); |
|---|
| 561 | extern int * fep_initsystem_32_svc(int *, struct svc_req *); |
|---|
| 562 | #define FEP_INITREALIX 41 |
|---|
| 563 | extern int * fep_initrealix_32(init_form *, CLIENT *); |
|---|
| 564 | extern int * fep_initrealix_32_svc(init_form *, struct svc_req *); |
|---|
| 565 | extern int fep_program_32_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
|---|
| 566 | |
|---|
| 567 | #else /* K&R C */ |
|---|
| 568 | #define FEP_GETLINEINFOCOUNT 1 |
|---|
| 569 | extern int * fep_getlineinfocount_32(); |
|---|
| 570 | extern int * fep_getlineinfocount_32_svc(); |
|---|
| 571 | #define FEP_GETLINEINFO 2 |
|---|
| 572 | extern lineinfo_ret * fep_getlineinfo_32(); |
|---|
| 573 | extern lineinfo_ret * fep_getlineinfo_32_svc(); |
|---|
| 574 | #define FEP_GETLINEINFOVALUE 3 |
|---|
| 575 | extern lineinfo_ret * fep_getlineinfovalue_32(); |
|---|
| 576 | extern lineinfo_ret * fep_getlineinfovalue_32_svc(); |
|---|
| 577 | #define FEP_SENDLINEINFO 4 |
|---|
| 578 | extern lineinfo_ret * fep_sendlineinfo_32(); |
|---|
| 579 | extern lineinfo_ret * fep_sendlineinfo_32_svc(); |
|---|
| 580 | #define FEP_GETTIME 5 |
|---|
| 581 | extern std_time_ret * fep_gettime_32(); |
|---|
| 582 | extern std_time_ret * fep_gettime_32_svc(); |
|---|
| 583 | #define FEP_SETTIME 6 |
|---|
| 584 | extern std_time_ret * fep_settime_32(); |
|---|
| 585 | extern std_time_ret * fep_settime_32_svc(); |
|---|
| 586 | #define FEP_ADVANCETIME 7 |
|---|
| 587 | extern std_time_ret * fep_advancetime_32(); |
|---|
| 588 | extern std_time_ret * fep_advancetime_32_svc(); |
|---|
| 589 | #define FEP_GETSCHEDULECOUNT 8 |
|---|
| 590 | extern int * fep_getschedulecount_32(); |
|---|
| 591 | extern int * fep_getschedulecount_32_svc(); |
|---|
| 592 | #define FEP_GETSCHEDULE 9 |
|---|
| 593 | extern schedule_ret * fep_getschedule_32(); |
|---|
| 594 | extern schedule_ret * fep_getschedule_32_svc(); |
|---|
| 595 | #define FEP_GETSCHEDULEVALUE 10 |
|---|
| 596 | extern schedule_ret * fep_getschedulevalue_32(); |
|---|
| 597 | extern schedule_ret * fep_getschedulevalue_32_svc(); |
|---|
| 598 | #define FEP_SENDSCHEDULE 11 |
|---|
| 599 | extern schedule_ret * fep_sendschedule_32(); |
|---|
| 600 | extern schedule_ret * fep_sendschedule_32_svc(); |
|---|
| 601 | #define FEP_SETLINEMGR_SCHEDULE 12 |
|---|
| 602 | extern errorstatus * fep_setlinemgr_schedule_32(); |
|---|
| 603 | extern errorstatus * fep_setlinemgr_schedule_32_svc(); |
|---|
| 604 | #define FEP_FREE_SCHEDULE 13 |
|---|
| 605 | extern errorstatus * fep_free_schedule_32(); |
|---|
| 606 | extern errorstatus * fep_free_schedule_32_svc(); |
|---|
| 607 | #define FEP_IDLELINE 14 |
|---|
| 608 | extern errorstatus * fep_idleline_32(); |
|---|
| 609 | extern errorstatus * fep_idleline_32_svc(); |
|---|
| 610 | #define FEP_MODEMSIGNALS 15 |
|---|
| 611 | extern errorstatus * fep_modemsignals_32(); |
|---|
| 612 | extern errorstatus * fep_modemsignals_32_svc(); |
|---|
| 613 | #define FEP_GETREPLY 16 |
|---|
| 614 | extern reply_ret * fep_getreply_32(); |
|---|
| 615 | extern reply_ret * fep_getreply_32_svc(); |
|---|
| 616 | #define FEP_CLEARREPLY 17 |
|---|
| 617 | extern errorstatus * fep_clearreply_32(); |
|---|
| 618 | extern errorstatus * fep_clearreply_32_svc(); |
|---|
| 619 | #define FEP_UPDATESCHEDULE 18 |
|---|
| 620 | extern schedule_ret * fep_updateschedule_32(); |
|---|
| 621 | extern schedule_ret * fep_updateschedule_32_svc(); |
|---|
| 622 | #define FEP_GETREPORTCOUNT 20 |
|---|
| 623 | extern int * fep_getreportcount_32(); |
|---|
| 624 | extern int * fep_getreportcount_32_svc(); |
|---|
| 625 | #define FEP_GETREPORT 21 |
|---|
| 626 | extern report_ret * fep_getreport_32(); |
|---|
| 627 | extern report_ret * fep_getreport_32_svc(); |
|---|
| 628 | #define FEP_GETREPORTVALUE 22 |
|---|
| 629 | extern report_ret * fep_getreportvalue_32(); |
|---|
| 630 | extern report_ret * fep_getreportvalue_32_svc(); |
|---|
| 631 | #define FEP_SENDREPORT 23 |
|---|
| 632 | extern report_ret * fep_sendreport_32(); |
|---|
| 633 | extern report_ret * fep_sendreport_32_svc(); |
|---|
| 634 | #define FEP_REPLY_XFER 30 |
|---|
| 635 | extern void * fep_reply_xfer_32(); |
|---|
| 636 | extern void * fep_reply_xfer_32_svc(); |
|---|
| 637 | #define FEP_SET_DEBUG 36 |
|---|
| 638 | extern errorstatus * fep_set_debug_32(); |
|---|
| 639 | extern errorstatus * fep_set_debug_32_svc(); |
|---|
| 640 | #define FEP_GET_STACK_LEFT 37 |
|---|
| 641 | extern int * fep_get_stack_left_32(); |
|---|
| 642 | extern int * fep_get_stack_left_32_svc(); |
|---|
| 643 | #define FEP_SETLMDEBUG 38 |
|---|
| 644 | extern errorstatus * fep_setlmdebug_32(); |
|---|
| 645 | extern errorstatus * fep_setlmdebug_32_svc(); |
|---|
| 646 | #define FEP_SHUTDOWN 39 |
|---|
| 647 | extern errorstatus * fep_shutdown_32(); |
|---|
| 648 | extern errorstatus * fep_shutdown_32_svc(); |
|---|
| 649 | #define FEP_INITSYSTEM 40 |
|---|
| 650 | extern int * fep_initsystem_32(); |
|---|
| 651 | extern int * fep_initsystem_32_svc(); |
|---|
| 652 | #define FEP_INITREALIX 41 |
|---|
| 653 | extern int * fep_initrealix_32(); |
|---|
| 654 | extern int * fep_initrealix_32_svc(); |
|---|
| 655 | extern int fep_program_32_freeresult (); |
|---|
| 656 | #endif /* K&R C */ |
|---|
| 657 | |
|---|
| 658 | /* the xdr functions */ |
|---|
| 659 | |
|---|
| 660 | #if defined(__STDC__) || defined(__cplusplus) |
|---|
| 661 | extern bool_t xdr_errorstatus (XDR *, errorstatus*); |
|---|
| 662 | extern bool_t xdr_Polling_FSM_States (XDR *, Polling_FSM_States*); |
|---|
| 663 | extern bool_t xdr_fep_lineinfo (XDR *, fep_lineinfo*); |
|---|
| 664 | extern bool_t xdr_lineinfo_ret (XDR *, lineinfo_ret*); |
|---|
| 665 | extern bool_t xdr_fep_std_time (XDR *, fep_std_time*); |
|---|
| 666 | extern bool_t xdr_std_time_ret (XDR *, std_time_ret*); |
|---|
| 667 | extern bool_t xdr_protocoltype (XDR *, protocoltype*); |
|---|
| 668 | extern bool_t xdr_duplex (XDR *, duplex*); |
|---|
| 669 | extern bool_t xdr_fep_poll_info (XDR *, fep_poll_info*); |
|---|
| 670 | extern bool_t xdr_fep_poll_short_msg (XDR *, fep_poll_short_msg*); |
|---|
| 671 | extern bool_t xdr_fep_shortpoll (XDR *, fep_shortpoll*); |
|---|
| 672 | extern bool_t xdr_fep_shortpoll_list (XDR *, fep_shortpoll_list*); |
|---|
| 673 | extern bool_t xdr_fep_poll_long_msg (XDR *, fep_poll_long_msg*); |
|---|
| 674 | extern bool_t xdr_fep_longpoll (XDR *, fep_longpoll*); |
|---|
| 675 | extern bool_t xdr_fep_longpoll_list (XDR *, fep_longpoll_list*); |
|---|
| 676 | extern bool_t xdr_poll_length (XDR *, poll_length*); |
|---|
| 677 | extern bool_t xdr_fep_poll_list (XDR *, fep_poll_list*); |
|---|
| 678 | extern bool_t xdr_polltype (XDR *, polltype*); |
|---|
| 679 | extern bool_t xdr_commandtype (XDR *, commandtype*); |
|---|
| 680 | extern bool_t xdr_schedulestatus (XDR *, schedulestatus*); |
|---|
| 681 | extern bool_t xdr_fep_schedule (XDR *, fep_schedule*); |
|---|
| 682 | extern bool_t xdr_answererror (XDR *, answererror*); |
|---|
| 683 | extern bool_t xdr_fep_pollerror (XDR *, fep_pollerror*); |
|---|
| 684 | extern bool_t xdr_replystatus (XDR *, replystatus*); |
|---|
| 685 | extern bool_t xdr_fep_answer_info (XDR *, fep_answer_info*); |
|---|
| 686 | extern bool_t xdr_fep_answer_short_msg (XDR *, fep_answer_short_msg*); |
|---|
| 687 | extern bool_t xdr_fep_shortanswer (XDR *, fep_shortanswer*); |
|---|
| 688 | extern bool_t xdr_fep_shortanswer_list (XDR *, fep_shortanswer_list*); |
|---|
| 689 | extern bool_t xdr_fep_answer_long_msg (XDR *, fep_answer_long_msg*); |
|---|
| 690 | extern bool_t xdr_fep_longanswer (XDR *, fep_longanswer*); |
|---|
| 691 | extern bool_t xdr_fep_longanswer_list (XDR *, fep_longanswer_list*); |
|---|
| 692 | extern bool_t xdr_fep_answer_list (XDR *, fep_answer_list*); |
|---|
| 693 | extern bool_t xdr_replykind (XDR *, replykind*); |
|---|
| 694 | extern bool_t xdr_fep_reply (XDR *, fep_reply*); |
|---|
| 695 | extern bool_t xdr_schedule_ret (XDR *, schedule_ret*); |
|---|
| 696 | extern bool_t xdr_fep_reply_request (XDR *, fep_reply_request*); |
|---|
| 697 | extern bool_t xdr_reply_ret (XDR *, reply_ret*); |
|---|
| 698 | extern bool_t xdr_init_form (XDR *, init_form*); |
|---|
| 699 | extern bool_t xdr_fep_setschedule (XDR *, fep_setschedule*); |
|---|
| 700 | extern bool_t xdr_statusflags (XDR *, statusflags*); |
|---|
| 701 | extern bool_t xdr_fep_lineop (XDR *, fep_lineop*); |
|---|
| 702 | extern bool_t xdr_ipprotocol (XDR *, ipprotocol*); |
|---|
| 703 | extern bool_t xdr_action (XDR *, action*); |
|---|
| 704 | extern bool_t xdr_portstatus (XDR *, portstatus*); |
|---|
| 705 | extern bool_t xdr_fep_report (XDR *, fep_report*); |
|---|
| 706 | extern bool_t xdr_report_ret (XDR *, report_ret*); |
|---|
| 707 | |
|---|
| 708 | #else /* K&R C */ |
|---|
| 709 | extern bool_t xdr_errorstatus (); |
|---|
| 710 | extern bool_t xdr_Polling_FSM_States (); |
|---|
| 711 | extern bool_t xdr_fep_lineinfo (); |
|---|
| 712 | extern bool_t xdr_lineinfo_ret (); |
|---|
| 713 | extern bool_t xdr_fep_std_time (); |
|---|
| 714 | extern bool_t xdr_std_time_ret (); |
|---|
| 715 | extern bool_t xdr_protocoltype (); |
|---|
| 716 | extern bool_t xdr_duplex (); |
|---|
| 717 | extern bool_t xdr_fep_poll_info (); |
|---|
| 718 | extern bool_t xdr_fep_poll_short_msg (); |
|---|
| 719 | extern bool_t xdr_fep_shortpoll (); |
|---|
| 720 | extern bool_t xdr_fep_shortpoll_list (); |
|---|
| 721 | extern bool_t xdr_fep_poll_long_msg (); |
|---|
| 722 | extern bool_t xdr_fep_longpoll (); |
|---|
| 723 | extern bool_t xdr_fep_longpoll_list (); |
|---|
| 724 | extern bool_t xdr_poll_length (); |
|---|
| 725 | extern bool_t xdr_fep_poll_list (); |
|---|
| 726 | extern bool_t xdr_polltype (); |
|---|
| 727 | extern bool_t xdr_commandtype (); |
|---|
| 728 | extern bool_t xdr_schedulestatus (); |
|---|
| 729 | extern bool_t xdr_fep_schedule (); |
|---|
| 730 | extern bool_t xdr_answererror (); |
|---|
| 731 | extern bool_t xdr_fep_pollerror (); |
|---|
| 732 | extern bool_t xdr_replystatus (); |
|---|
| 733 | extern bool_t xdr_fep_answer_info (); |
|---|
| 734 | extern bool_t xdr_fep_answer_short_msg (); |
|---|
| 735 | extern bool_t xdr_fep_shortanswer (); |
|---|
| 736 | extern bool_t xdr_fep_shortanswer_list (); |
|---|
| 737 | extern bool_t xdr_fep_answer_long_msg (); |
|---|
| 738 | extern bool_t xdr_fep_longanswer (); |
|---|
| 739 | extern bool_t xdr_fep_longanswer_list (); |
|---|
| 740 | extern bool_t xdr_fep_answer_list (); |
|---|
| 741 | extern bool_t xdr_replykind (); |
|---|
| 742 | extern bool_t xdr_fep_reply (); |
|---|
| 743 | extern bool_t xdr_schedule_ret (); |
|---|
| 744 | extern bool_t xdr_fep_reply_request (); |
|---|
| 745 | extern bool_t xdr_reply_ret (); |
|---|
| 746 | extern bool_t xdr_init_form (); |
|---|
| 747 | extern bool_t xdr_fep_setschedule (); |
|---|
| 748 | extern bool_t xdr_statusflags (); |
|---|
| 749 | extern bool_t xdr_fep_lineop (); |
|---|
| 750 | extern bool_t xdr_ipprotocol (); |
|---|
| 751 | extern bool_t xdr_action (); |
|---|
| 752 | extern bool_t xdr_portstatus (); |
|---|
| 753 | extern bool_t xdr_fep_report (); |
|---|
| 754 | extern bool_t xdr_report_ret (); |
|---|
| 755 | |
|---|
| 756 | #endif /* K&R C */ |
|---|
| 757 | |
|---|
| 758 | #ifdef __cplusplus |
|---|
| 759 | } |
|---|
| 760 | #endif |
|---|
| 761 | |
|---|
| 762 | #endif /* !_FEP_H_RPCGEN */ |
|---|