DwtDrmGetResourceContext(3Dwt)
Name
DwtDrmGetResourceContext − Gets a resource context.
Syntax
#include <X11/DwtAppl.h>
Cardinal DwtDrmGetResourceContext(alloc_func, free_func,
size, context_id_return)
char *((*alloc_func) ());
void (*free_func) ();
DRMSize size;
DRMResourceContextPtr *context_id_return;
Arguments
alloc_funcSpecifies the function to use in allocating memory for this resource context. A NULL pointer means use the default, which is XtMalloc.
free_funcSpecifies the function to use in freeing memory for this context. A NULL pointer means use the default, which is XtFree.
sizeSpecifies the size of the memory buffer to allocate.
context_id_return
Returns the new resource context.
Description
The DwtDrmGetResourceContext function allocates a new resource context and a memory buffer of the requested size. It then associates the buffer with the context.
Return Values
This function returns one of these status return constants:
| DRMSuccess | The function executed successfully. |
| DRMFailure | The function failed. |