21 #ifndef _SHI_SERVICE_H_ 22 #define _SHI_SERVICE_H_ 73 #if defined(__cplusplus) 272 #if defined (__cplusplus) #define SHI_PUBLIC_API
Definition: ShiTypes.h:52
SHI_Data * renewal_uri_template
Renewal URI template for renewing subscription.
Definition: ShiService.h:65
struct SHI_ServiceSubscription SHI_ServiceSubscription
A SHI_ServiceSubscription object represents information about a service subscription.
Definition: ShiService.h:215
SHI_Boolean is_device_registered
Indicates whether the device on which the code runs is registered to this user.
Definition: ShiService.h:50
SHI_DateTime expiration
Expiration date for the subscription (all fields will be set to 0 if the expiration date cannot be de...
Definition: ShiService.h:61
SHI_PUBLIC_API void * SHI_ServiceUser_GetInterface(SHI_ServiceUser *self, SHI_InterfaceId iface_id)
Obtains a pointer to a SHI_ServiceUser object with a different interface.
const char * name
Human-readable name for the service user.
Definition: ShiService.h:48
struct SHI_Attribute SHI_Attribute
SHI_Attribute objects represent named values that can be arranged in a tree structure.
Definition: ShiAttributes.h:110
Information about a service subscription.
Definition: ShiService.h:57
const char * name
Human-readable name for the service.
Definition: ShiService.h:40
SHI_DateTime renewal_date
Renewal date for the subscription.
Definition: ShiService.h:64
Information about a service user.
Definition: ShiService.h:47
struct SHI_ServiceUser SHI_ServiceUser
A SHI_ServiceUser object represents information about a service user.
Definition: ShiService.h:150
SHI_PUBLIC_API SHI_Result SHI_ServiceUser_GetInfo(SHI_ServiceUser *self, SHI_ServiceUserInfo *info)
Gets basic information about this service user.
SHI_PUBLIC_API void * SHI_Service_GetInterface(SHI_Service *self, SHI_InterfaceId iface_id)
Obtains a pointer to a SHI_Service object with a different interface.
SHI_PUBLIC_API SHI_Result SHI_ServiceSubscription_Release(SHI_ServiceSubscription *self)
Releases this service subscription object.
const char * uid
Unique ID for the service.
Definition: ShiService.h:41
SHI_PUBLIC_API SHI_Result SHI_ServiceUser_Release(SHI_ServiceUser *self)
Releases this service user object.
Information about a service.
Definition: ShiService.h:39
SHI_UInt32 SHI_InterfaceId
Definition: ShiInterfaces.h:33
const char * name
Human-readable name for the service subscription.
Definition: ShiService.h:58
SHI_Boolean
Boolean type used for variables that can be true (SHI_TRUE) or false (SHI_FALSE). ...
Definition: ShiTypes.h:62
struct SHI_Service SHI_Service
A SHI_Service object represents information about a service.
Definition: ShiService.h:85
SHI_PUBLIC_API SHI_Result SHI_Service_Release(SHI_Service *self)
Releases this service object.
A date and time.
Definition: ShiTypes.h:128
SHI_PUBLIC_API SHI_Result SHI_ServiceSubscription_GetDetails(SHI_ServiceSubscription *self, SHI_Attribute **details)
Gets the details of this service subscription.
SHI_PUBLIC_API SHI_Result SHI_ServiceUser_GetDetails(SHI_ServiceUser *self, SHI_Attribute **details)
Gets the details of this service user.
const char * uid
Unique ID for the service user.
Definition: ShiService.h:49
SHI_PUBLIC_API SHI_Result SHI_ServiceSubscription_GetInfo(SHI_ServiceSubscription *self, SHI_ServiceSubscriptionInfo *info)
Gets basic information about this service subscription.
struct SHI_Data SHI_Data
A SHI_Data object represents a typed data object.
Definition: ShiData.h:116
SHI_PUBLIC_API void * SHI_ServiceSubscription_GetInterface(SHI_ServiceSubscription *self, SHI_InterfaceId iface_id)
Obtains a pointer to a SHI_ServiceSubscription object with a different interface. ...
int SHI_Result
Signed integer value representing a function or method result (return value).
Definition: ShiTypes.h:74
SHI_PUBLIC_API SHI_Result SHI_Service_GetInfo(SHI_Service *self, SHI_ServiceInfo *info)
Gets basic information about this service.
const char * uid
Unique ID for the service subscription.
Definition: ShiService.h:59
SHI_PUBLIC_API SHI_Result SHI_Service_GetDetails(SHI_Service *self, SHI_Attribute **details)
Gets the details of this service.
SHI_Boolean is_valid
Indicates if the subscription is currently valid.
Definition: ShiService.h:60