Snapdragon® Telematics Application Framework (TelAF) Interface Specification
taf_someipSvr_server.h
Go to the documentation of this file.
1 
2 
3 /*
4  * ====================== WARNING ======================
5  *
6  * THE CONTENTS OF THIS FILE HAVE BEEN AUTO-GENERATED.
7  * DO NOT MODIFY IN ANY WAY.
8  *
9  * ====================== WARNING ======================
10  */
11 
12 
13 #ifndef TAF_SOMEIPSVR_INTERFACE_H_INCLUDE_GUARD
14 #define TAF_SOMEIPSVR_INTERFACE_H_INCLUDE_GUARD
15 
16 
17 #include "legato.h"
18 
19 // Interface specific includes
20 #include "taf_someipDef_server.h"
21 
22 // Internal includes for this interface
23 #include "taf_someipSvr_common.h"
24 //--------------------------------------------------------------------------------------------------
28 //--------------------------------------------------------------------------------------------------
29 le_msg_ServiceRef_t taf_someipSvr_GetServiceRef
30 (
31  void
32 );
33 
34 //--------------------------------------------------------------------------------------------------
38 //--------------------------------------------------------------------------------------------------
40 (
41  void
42 );
43 
44 //--------------------------------------------------------------------------------------------------
48 //--------------------------------------------------------------------------------------------------
50 (
51  void
52 );
53 
54 
55 //--------------------------------------------------------------------------------------------------
60 //--------------------------------------------------------------------------------------------------
61 
62 
63 //--------------------------------------------------------------------------------------------------
67 //--------------------------------------------------------------------------------------------------
68 
69 
70 //--------------------------------------------------------------------------------------------------
74 //--------------------------------------------------------------------------------------------------
75 
76 
77 //--------------------------------------------------------------------------------------------------
81 //--------------------------------------------------------------------------------------------------
82 
83 
84 //--------------------------------------------------------------------------------------------------
88 //--------------------------------------------------------------------------------------------------
89 
90 
91 //--------------------------------------------------------------------------------------------------
95 //--------------------------------------------------------------------------------------------------
96 
97 
98 
99 //--------------------------------------------------------------------------------------------------
107 //--------------------------------------------------------------------------------------------------
109 (
110  uint16_t serviceId,
112  uint16_t instanceId
114 );
115 
116 
117 
118 //--------------------------------------------------------------------------------------------------
127 //--------------------------------------------------------------------------------------------------
129 (
130  uint16_t serviceId,
132  uint16_t instanceId,
134  const char* LE_NONNULL ifName
136 );
137 
138 
139 
140 //--------------------------------------------------------------------------------------------------
152 //--------------------------------------------------------------------------------------------------
154 (
155  taf_someipSvr_ServiceRef_t serviceRef,
157  uint8_t majVer,
159  uint32_t minVer
161 );
162 
163 
164 
165 //--------------------------------------------------------------------------------------------------
176 //--------------------------------------------------------------------------------------------------
178 (
179  taf_someipSvr_ServiceRef_t serviceRef,
181  uint16_t udpPort,
183  uint16_t tcpPort,
185  bool enableMagicCookies
187 );
188 
189 
190 
191 //--------------------------------------------------------------------------------------------------
202 //--------------------------------------------------------------------------------------------------
204 (
205  taf_someipSvr_ServiceRef_t serviceRef
207 );
208 
209 
210 
211 //--------------------------------------------------------------------------------------------------
221 //--------------------------------------------------------------------------------------------------
223 (
224  taf_someipSvr_ServiceRef_t serviceRef
226 );
227 
228 
229 
230 //--------------------------------------------------------------------------------------------------
243 //--------------------------------------------------------------------------------------------------
245 (
246  taf_someipSvr_ServiceRef_t serviceRef,
248  uint16_t eventId,
250  uint16_t eventgroupId
252 );
253 
254 
255 
256 //--------------------------------------------------------------------------------------------------
268 //--------------------------------------------------------------------------------------------------
270 (
271  taf_someipSvr_ServiceRef_t serviceRef,
273  uint16_t eventId,
275  taf_someipDef_EventType_t eventType
277 );
278 
279 
280 
281 //--------------------------------------------------------------------------------------------------
295 //--------------------------------------------------------------------------------------------------
297 (
298  taf_someipSvr_ServiceRef_t serviceRef,
300  uint16_t eventId,
302  uint32_t cycleTime
304 );
305 
306 
307 
308 //--------------------------------------------------------------------------------------------------
320 //--------------------------------------------------------------------------------------------------
322 (
323  taf_someipSvr_ServiceRef_t serviceRef,
325  uint16_t eventId
327 );
328 
329 
330 
331 //--------------------------------------------------------------------------------------------------
344 //--------------------------------------------------------------------------------------------------
346 (
347  taf_someipSvr_ServiceRef_t serviceRef,
349  uint16_t eventId
351 );
352 
353 
354 
355 //--------------------------------------------------------------------------------------------------
366 //--------------------------------------------------------------------------------------------------
368 (
369  taf_someipSvr_ServiceRef_t serviceRef,
371  uint16_t eventId
373 );
374 
375 
376 
377 //--------------------------------------------------------------------------------------------------
391 //--------------------------------------------------------------------------------------------------
393 (
394  taf_someipSvr_ServiceRef_t serviceRef,
396  uint16_t eventId,
398  const uint8_t* dataPtr,
400  size_t dataSize
402 );
403 
404 
405 
406 //--------------------------------------------------------------------------------------------------
412 //--------------------------------------------------------------------------------------------------
414 (
415  taf_someipSvr_ServiceRef_t serviceRef,
419  void* contextPtr
421 );
422 
423 
424 
425 //--------------------------------------------------------------------------------------------------
429 //--------------------------------------------------------------------------------------------------
431 (
434 );
435 
436 
437 
438 //--------------------------------------------------------------------------------------------------
444 //--------------------------------------------------------------------------------------------------
446 (
447  taf_someipSvr_ServiceRef_t serviceRef,
449  uint16_t eventGroupId,
453  void* contextPtr
455 );
456 
457 
458 
459 //--------------------------------------------------------------------------------------------------
463 //--------------------------------------------------------------------------------------------------
465 (
468 );
469 
470 
471 
472 //--------------------------------------------------------------------------------------------------
480 //--------------------------------------------------------------------------------------------------
482 (
485  uint16_t* serviceIdPtr,
487  uint16_t* instanceIdPtr
489 );
490 
491 
492 
493 //--------------------------------------------------------------------------------------------------
501 //--------------------------------------------------------------------------------------------------
503 (
506  uint16_t* methodIdPtr
508 );
509 
510 
511 
512 //--------------------------------------------------------------------------------------------------
520 //--------------------------------------------------------------------------------------------------
522 (
525  uint16_t* clientIdPtr
527 );
528 
529 
530 
531 //--------------------------------------------------------------------------------------------------
540 //--------------------------------------------------------------------------------------------------
542 (
545  uint8_t* msgTypePtr
547 );
548 
549 
550 
551 //--------------------------------------------------------------------------------------------------
559 //--------------------------------------------------------------------------------------------------
561 (
564  uint32_t* payloadSizePtr
566 );
567 
568 
569 
570 //--------------------------------------------------------------------------------------------------
578 //--------------------------------------------------------------------------------------------------
580 (
583  uint8_t* dataPtr,
585  size_t* dataSizePtr
587 );
588 
589 
590 
591 //--------------------------------------------------------------------------------------------------
605 //--------------------------------------------------------------------------------------------------
607 (
610  bool isErrRsp,
612  uint8_t returnCode,
614  const uint8_t* dataPtr,
616  size_t dataSize
618 );
619 
620 
621 
622 //--------------------------------------------------------------------------------------------------
631 //--------------------------------------------------------------------------------------------------
633 (
636 );
637 
638 
639 #endif // TAF_SOMEIPSVR_INTERFACE_H_INCLUDE_GUARD
void taf_someipSvr_RemoveSubscriptionHandler(taf_someipSvr_SubscriptionHandlerRef_t handlerRef)
Definition: taf_someipSvr_client.c:1004
struct taf_someipSvr_Service * taf_someipSvr_ServiceRef_t
Definition: taf_someipSvr_common.h:30
le_result_t taf_someipSvr_GetServiceId(taf_someipSvr_RxMsgRef_t msgRef, uint16_t *serviceIdPtr, uint16_t *instanceIdPtr)
Definition: taf_someipSvr_client.c:1025
le_result_t taf_someipSvr_EnableEvent(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventId, uint16_t eventgroupId)
Definition: taf_someipSvr_client.c:727
le_result_t taf_someipSvr_GetMsgType(taf_someipSvr_RxMsgRef_t msgRef, uint8_t *msgTypePtr)
Definition: taf_someipSvr_client.c:1101
le_result_t taf_someipSvr_GetPayloadData(taf_someipSvr_RxMsgRef_t msgRef, uint8_t *dataPtr, size_t *dataSizePtr)
Definition: taf_someipSvr_client.c:1149
void taf_someipSvr_AdvertiseService(void)
Definition: taf_someipSvr_server.c:296
le_result_t taf_someipSvr_SetEventCycleTime(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventId, uint32_t cycleTime)
Definition: taf_someipSvr_client.c:791
le_result_t taf_someipSvr_DisableEvent(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventId)
Definition: taf_someipSvr_client.c:822
le_result_t taf_someipSvr_StopOfferEvent(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventId)
Definition: taf_someipSvr_client.c:878
taf_someipSvr_ServiceRef_t taf_someipSvr_GetServiceEx(uint16_t serviceId, uint16_t instanceId, const char *LE_NONNULL ifName)
Definition: taf_someipSvr_client.c:584
le_result_t taf_someipSvr_SetServicePort(taf_someipSvr_ServiceRef_t serviceRef, uint16_t udpPort, uint16_t tcpPort, bool enableMagicCookies)
Definition: taf_someipSvr_client.c:645
le_result_t taf_someipSvr_OfferEvent(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventId)
Definition: taf_someipSvr_client.c:851
taf_someipSvr_RxMsgHandlerRef_t taf_someipSvr_AddRxMsgHandler(taf_someipSvr_ServiceRef_t serviceRef, taf_someipSvr_RxMsgHandlerFunc_t handlerPtr, void *contextPtr)
Definition: taf_someipSvr_client.c:936
le_result_t taf_someipSvr_Notify(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventId, const uint8_t *dataPtr, size_t dataSize)
Definition: taf_someipSvr_client.c:908
le_result_t taf_someipSvr_GetPayloadSize(taf_someipSvr_RxMsgRef_t msgRef, uint32_t *payloadSizePtr)
Definition: taf_someipSvr_client.c:1125
le_result_t taf_someipSvr_SetEventType(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventId, taf_someipDef_EventType_t eventType)
Definition: taf_someipSvr_client.c:758
le_result_t taf_someipSvr_SendResponse(taf_someipSvr_RxMsgRef_t msgRef, bool isErrRsp, uint8_t returnCode, const uint8_t *dataPtr, size_t dataSize)
Definition: taf_someipSvr_client.c:1182
le_result_t taf_someipSvr_StopOfferService(taf_someipSvr_ServiceRef_t serviceRef)
Definition: taf_someipSvr_client.c:701
le_result_t taf_someipSvr_SetServiceVersion(taf_someipSvr_ServiceRef_t serviceRef, uint8_t majVer, uint32_t minVer)
Definition: taf_someipSvr_client.c:615
le_msg_ServiceRef_t taf_someipSvr_GetServiceRef(void)
Definition: taf_someipSvr_server.c:269
le_result_t taf_someipSvr_ReleaseRxMsg(taf_someipSvr_RxMsgRef_t msgRef)
Definition: taf_someipSvr_client.c:1216
le_result_t taf_someipSvr_GetClientId(taf_someipSvr_RxMsgRef_t msgRef, uint16_t *clientIdPtr)
Definition: taf_someipSvr_client.c:1076
le_result_t taf_someipSvr_OfferService(taf_someipSvr_ServiceRef_t serviceRef)
Definition: taf_someipSvr_client.c:678
struct taf_someipSvr_RxMsg * taf_someipSvr_RxMsgRef_t
Definition: taf_someipSvr_common.h:38
struct taf_someipSvr_RxMsgHandler * taf_someipSvr_RxMsgHandlerRef_t
Definition: taf_someipSvr_common.h:46
void(* taf_someipSvr_SubscriptionHandlerFunc_t)(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventGroupId, bool isSubscribed, void *contextPtr)
Definition: taf_someipSvr_common.h:76
struct taf_someipSvr_SubscriptionHandler * taf_someipSvr_SubscriptionHandlerRef_t
Definition: taf_someipSvr_common.h:54
void taf_someipSvr_RemoveRxMsgHandler(taf_someipSvr_RxMsgHandlerRef_t handlerRef)
Definition: taf_someipSvr_client.c:959
taf_someipSvr_ServiceRef_t taf_someipSvr_GetService(uint16_t serviceId, uint16_t instanceId)
Definition: taf_someipSvr_client.c:559
void(* taf_someipSvr_RxMsgHandlerFunc_t)(taf_someipSvr_RxMsgRef_t msgRef, void *contextPtr)
Definition: taf_someipSvr_common.h:63
#define LE_NONNULL
Definition: le_basics.h:368
le_result_t
Definition: le_basics.h:45
struct le_msg_Session * le_msg_SessionRef_t
Definition: le_messaging.h:860
le_msg_SessionRef_t taf_someipSvr_GetClientSessionRef(void)
Definition: taf_someipSvr_server.c:282
taf_someipDef_EventType_t
Definition: taf_someipDef_common.h:171
taf_someipSvr_SubscriptionHandlerRef_t taf_someipSvr_AddSubscriptionHandler(taf_someipSvr_ServiceRef_t serviceRef, uint16_t eventGroupId, taf_someipSvr_SubscriptionHandlerFunc_t handlerPtr, void *contextPtr)
Definition: taf_someipSvr_client.c:978
le_result_t taf_someipSvr_GetMethodId(taf_someipSvr_RxMsgRef_t msgRef, uint16_t *methodIdPtr)
Definition: taf_someipSvr_client.c:1052