Name
ggiGAGetState, ggiGASetState -- Get or set the allocation state of a resource.
Synopsis
#include <ggi/galloc.h>
enum ggiGA_resource_state ggiGAGetState
(ggiGA_resource_handle res);
enum ggiGA_resource_state ggiGASetState
(ggiGA_resource_handle res,
enum ggiGA_resource_state state);
Description
These allow setting/getting the resource's negotiation state.
Don't set this field unless you really know what you are doing.
Return value
Both functions return the negotiation state that was in the resource
before the function was called.
Examples
Example 1. ggiGAGetState/ggiGASetState Example
ggiGASetState(resource, ggiGAGetState(resource) | GA_STATE_CAP);