StreamLinkforC  7.0.3-308369
sl_subjectlistener Struct Reference

Defines the interface that should be satisfied to receive updates for subjects. More...

#include <sl4c.h>

Data Fields

void(* record_updated )(streamlink *client, void *ctx, const char *subject, sl_fieldlist *fields, char isimage)
 Invoked when an update is received for a record subject. More...
 
void(* record_type2_updated )(streamlink *client, void *ctx, const char *subject, sl_record2_event *event, char isimage)
 Invoked when an update is received for a type2 data on a record subject. More...
 
void(* record_type3_updated )(streamlink *client, void *ctx, const char *subject, sl_record3_event *event, char isimage)
 Invoked when an update is received for a type3 data on a record subject. More...
 
void(* page_updated )(streamlink *client, void *ctx, const char *subject, sl_page_event *event, char isimage)
 Invoked when an update is received for a Page subject. More...
 
void(* news_updated )(streamlink *client, void *ctx, const char *subject, sl_news_event *event, char isimage)
 Invoked when an update is received for a News subject. More...
 
void(* story_updated )(streamlink *client, void *ctx, const char *subject, sl_story_event *event, char isimage)
 Invoked when an update is received for a Story subject. More...
 
void(* permission_updated )(streamlink *client, void *ctx, const char *subject, sl_permission_event *event, char isimage)
 Invoked when an update is received for a Permission subject. More...
 
void(* container_updated )(streamlink *client, void *ctx, const char *subject, sl_container_event *event, char isimage)
 Invoked when an update is received for a Container subject. More...
 
void(* directory_updated )(streamlink *client, void *ctx, const char *subject, sl_directory_event *event, char isimage)
 Invoked when an update is received for a Directory subject. More...
 
void(* chat_updated )(streamlink *client, void *ctx, const char *subject, sl_chat_event *event, char isimage)
 Invoked when an update is received for a chat subject. More...
 
void(* error )(streamlink *client, void *ctx, const char *subject, sl_subjecterror error, sl_error_reason reason)
 Invoked when an error is received for a subject. More...
 
void(* status )(streamlink *client, void *ctx, const char *subject, sl_subjectstatus status, sl_fieldlist *fields)
 Invoked when the status of subject has changed. More...
 

Detailed Description

Defines the interface that should be satisfied to receive updates for subjects.

Field Documentation

void(* sl_subjectlistener::chat_updated) (streamlink *client, void *ctx, const char *subject, sl_chat_event *event, char isimage)

Invoked when an update is received for a chat subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::container_updated) (streamlink *client, void *ctx, const char *subject, sl_container_event *event, char isimage)

Invoked when an update is received for a Container subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::directory_updated) (streamlink *client, void *ctx, const char *subject, sl_directory_event *event, char isimage)

Invoked when an update is received for a Directory subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::error) (streamlink *client, void *ctx, const char *subject, sl_subjecterror error, sl_error_reason reason)

Invoked when an error is received for a subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has encountered an error
error- The subject error
reason- Sub-reason for the error

This callback will be invoked should the subject not be available on the server, the subject has been deleted or your permission to access the subject has been removed.

void(* sl_subjectlistener::news_updated) (streamlink *client, void *ctx, const char *subject, sl_news_event *event, char isimage)

Invoked when an update is received for a News subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::page_updated) (streamlink *client, void *ctx, const char *subject, sl_page_event *event, char isimage)

Invoked when an update is received for a Page subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::permission_updated) (streamlink *client, void *ctx, const char *subject, sl_permission_event *event, char isimage)

Invoked when an update is received for a Permission subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::record_type2_updated) (streamlink *client, void *ctx, const char *subject, sl_record2_event *event, char isimage)

Invoked when an update is received for a type2 data on a record subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::record_type3_updated) (streamlink *client, void *ctx, const char *subject, sl_record3_event *event, char isimage)

Invoked when an update is received for a type3 data on a record subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::record_updated) (streamlink *client, void *ctx, const char *subject, sl_fieldlist *fields, char isimage)

Invoked when an update is received for a record subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
fields- The field/value pairs that have updated
isimage- Non zero if this corresponds to an image
void(* sl_subjectlistener::status) (streamlink *client, void *ctx, const char *subject, sl_subjectstatus status, sl_fieldlist *fields)

Invoked when the status of subject has changed.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject to which the status applies
status- The status on the subject
void(* sl_subjectlistener::story_updated) (streamlink *client, void *ctx, const char *subject, sl_story_event *event, char isimage)

Invoked when an update is received for a Story subject.

Parameters
client- The client with which this subject is associated
ctx- The user supplied context
subject- The subject which has updated
event- A description of the change
isimage- Non zero if this corresponds to an image

The documentation for this struct was generated from the following file:

Generated on Tue Oct 16 2018 12:25:43 for StreamLinkforC