• About TV's server
  • New in version 3.20
  • New in version 3.10
  • About the source code
  • About protocols/plugins
  • TV's server API
  • Protocol Initialisation
  • Protocol binding
  • Protocol Listening and handling
  • Protocol data storage
  • Control panel
  • Multi column list
  • Time and date
  • Http protocol functions
  • Unimplemented and/or replaced functions
  • BindInitOption structure

    Contains information about the data to be stored by the SavePluginData function to initialize the ListenSession.

    Syntax

    typedef struct BindInitOption{
    char *name;
    char *data;
    int len;
    int flags;
    } BindInitOption;

    Members

    namedatalenflags
    ValueMeaning
    GDPD_IS_LIST
    0x1
    The name paramter identifies a MultiColumnList initialized by the SetControlPanelOptions. The data parameter should hold a pointer to a list or have enough space to receive a pointer to a list. See the Remark section for more information.
    GDPD_NO_COPY_LIST
    0x2
    GetPluginData should not make a copy of the list if it doesn't exist in the memory space of the Listensession or ClientSession. Setting this flag will cause the function GetPluginData to return the same pointer that exists in the ListenSession (from where the ClientSession was created) or ProtocolSession. This means that all changes made to the list will also have effect on the ListenSession or ProtocolSession from where the pointer originaly came from. This flag should be combinated with the GDPD_IS_LIST flag.
    GDPD_MEMORY_ONLY
    0x4
    The data should be saved in memory only, set this flag will cause the SavePluginData function not to store the data on disk. This flag has no effect on the function GetPluginData.
    GDPD_NAME_IS_INTEGER
    0x80
    The name paramter is not a pointer to a null-terminated string but an integer to identify the data.
    GDPD_RESET_DATA
    0x8
    The data, identified by name, should be deleted for the selected session. This will not delete the identified data for other sessions, nor will it delete the default data set by SetControlPanelOptions. This flag has no effect on the function GetPluginData.

    Requirements

    Minimum supported API 1.00
    Header tvsserver_base.h