Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ bstr_event_declare(3) — BASEstar Open Server 3.2

Media Vault

Software Library

Restoration Projects

Artifacts Sought

bstr_event_declare(3)  —  Subroutines

Name

bstr_event_declare − Declares an Event (VODB only). 

Syntax

bstr_t_status   bstr_event_declare (
                                  bstr_t_reference   ∗event
                                  bstr_t_string      origin,
                                  bstr_t_descriptor  ∗parameters,
                                  bstr_t_rcb         ∗control);

Description

The bstr_event_declare procedure declares the Event specified by event. As a result, an Event notification is delivered to all the Enboxes for which subscriptions exist for the declared Event. 

Context information can be passed using the associated parameters argument. 

Arguments

event
access: read
The reference to the Event condition being declared.

origin
access: read
A string containing a user-defined message (maximum length BSTR_C_BUFFER_LEN.

parameters
access: read
The address of a bstr_t_descriptor data structure that specifies the number of elements and the address of an array containing the parameter’s value. Each array element contains a pointer to a bstr_t_named_value data structure. 

The parameters argument is set to NULL if no context parameter values are to be supplied. The same applies if the length or data argument in the descriptor is set to zero or NULL, respectively. If an array element contains NULL, it means that the value of the corresponding parameter has not been supplied. 

Each bstr_t_named_value data structure contains the value, size and the name of the corresponding Event parameter (optional). The correspondence of a passed value to a parameter name is based on the position of the value in the parameter list. 

control
access: read
The address of an optional request control block.

Return Values

BSTR_S_ABORTED Operation aborted
BSTR_S_BAD_PARAMETER Bad parameter value
BSTR_S_BAD_REFERENCE Bad reference
BSTR_S_CANNOT_NOTIFY_ALL The notification cannot be delivered to all the subscribers
BSTR_S_COMMUNICATION_ERROR Communication error
BSTR_S_COM_PC_SIZE_MISMATCH Number of bytes requested does not match the number of bytes returned
BSTR_S_FINISH Request aborted by bstr_finish
BSTR_S_INTERNAL_ERROR Internal error
BSTR_S_INTR Operation interrupted
BSTR_S_INVALID_RCB Invalid Request Control Block
BSTR_S_INVALID_USAGE Invalid reference usage
BSTR_S_INVALID_VALUE Invalid value
BSTR_S_NORMAL Normal successful completion
BSTR_S_NOT_IMPLEMENTED Not yet implemented
BSTR_S_NOT_INITIALIZED BASEstar Open not initialized
BSTR_S_NO_MEMORY Insufficient virtual memory
BSTR_S_SERVER_NOT_REACHABLE Server not reachable
BSTR_S_TIMEOUT Timeout expired
BSTR_S_TOO_MANY_REQUESTS Too many pending requests

 

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026