![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |
tibas_status tibasAdmin_ExecuteFor commands such as define space <space-name>, the execute command may return a pointer to a string depending on the command being executed. The Metaspace on which the command should be executed must be passed in.
Use the tibasAdmin_Execute() function to execute an Admin command on a specified metaspace, using a specified Admin manager.
1. Call strlen() to determine the size of the buffer. Based on the value returned by strlen(), you can allocate memory to store the result for processing.If you use a non-NULL pointer to point to the result parameter, ActiveSpaces returns an error. After you are done processing the result, free the memory used by the result by calling the tibas_FreeData() function.The value for the admin parameter is returned when you call tibasAdmin_Create() to create an Admin manager.The following example illustrates the recommended way to use tibasAdminExecute():
![]() |
Copyright © TIBCO Software Inc. All Rights Reserved |