[Previous] [Contents] [Index] [Next]

PtGetStruct()

Retrieve the specified resource

Synopsis:

int PtGetStruct( char *base, 
                 PtResourceRec_t const *mod, 
                 PtArg_t *arg );

Description:

This function retrieves the resource specified by arg from the widget at address base as described by mod.

If the value and len members of arg are non-NULL, they're assumed to contain the addresses of pointers of the type appropriate for the resource. The pointers are set to point to the resource's value in the widget's internal memory.


Note: Don't use these pointers to change the resource's value.

If either of the value and len members of arg is NULL, the retrieved resources are stored in these members.

Returns:

0
Successful completion.
-1
An error occurred.

Classification:

Photon

Safety:
Interrupt handler No
Signal handler No
Thread No

See also:

PtSetStruct(), PtSuperClassGetResources(), PtSuperClassSetResources()


[Previous] [Contents] [Index] [Next]