Truxton bolo create

From truxwiki.com
Revision as of 06:09, 18 September 2021 by Sam (talk | contribs) (Created page with "This is the first step in creating a BOLO. =Syntax= <source lang="C"> uint64_t truxton_bolo_create( uint64_t truxton_handle ); </source> =Parameters= ==<code>truxton_handle<...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

This is the first step in creating a BOLO.

Syntax

uint64_t truxton_bolo_create( uint64_t truxton_handle );

Parameters

truxton_handle

The Truxton instance to hold the BOLO. This handle comes from calling truxton_create().

Sample

#include "TruxtonCAPI.h"
#pragma comment(lib, "TruxtonCAPI.lib")

#include <stdlib.h>
#pragma hdrstop

int main()
{
    truxton_start();

    uint64_t truxton = truxton_create();

    uint64_t bolo_handle = truxton_bolo_create( truxton );

    truxton_bolo_set_id( bolo_handle, "54727578-466F-7265-6E73-69634765656B" );

    truxton_bolo_save( bolo_handle );

    truxton_bolo_destroy( bolo_handle );
    truxton_destroy( truxton );
    truxton_stop();
}