webOS TV Native APIs
libhelpers.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <luna-service2/lunaservice.h>
13 
17 typedef struct HContext {
21  LSFilterFunc callback;
22  int unknown1;
23  int unknown2;
27  int multiple;
31  int public;
32  LSMessageToken ret_token;
34 
42 int HLunaServiceCall(const char *uri, const char *payload, HContext *context);
43 
50 
56 const char *HLunaServiceMessage(LSMessage *msg);
int HLunaServiceCall(const char *uri, const char *payload, HContext *context)
Send luna call.
Definition: libhelpers.c:3
int HUnregisterServiceCallback(HContext *context)
Unregister a service callback.
Definition: libhelpers.c:8
struct HContext HContext
Context for luna service calls.
const char * HLunaServiceMessage(LSMessage *msg)
Get payload message from luna call response.
Definition: libhelpers.c:13
Context for luna service calls.
Definition: libhelpers.h:17
int multiple
Whether the call is multiple (like subscription), or one-shot.
Definition: libhelpers.h:27
LSFilterFunc callback
Callback function called on incoming message.
Definition: libhelpers.h:21