Truxton get group entry type names

From truxwiki.com
Jump to navigation Jump to search

Retrieves the group names and values.

Syntax

void truxton_get_group_entry_type_names( uint64_t truxton_handle, char * destination_string, size_t max_size );

Parameters

truxton_handle

The handle created by the truxton_create() call.

destination_string

The string to be written to.

max_size

The maximum number of characters that can be written to destination_string

Remarks

The string returned by this API will be in JSON format.

Sample

void main()
{
   char * json = (char *) malloc( 10485760 );

   truxton_start();

   uint64_t truxton = truxton_create();

   truxton_get_group_entry_type_names( truxton, json, 10485760 );

   printf( "%s\n", json);

   truxton_destroy( truxton );

   free( json );

   truxton_stop();
}