treelite
Functions
c_api_common.cc File Reference

C API of treelite (this file is used by both runtime and main package) More...

#include <treelite/logging.h>
#include <treelite/c_api_common.h>
#include "./c_api_error.h"
Include dependency graph for c_api_common.cc:

Go to the source code of this file.

Functions

int TreeliteRegisterLogCallback (void(*callback)(const char *))
 register callback function for LOG(INFO) messages – helpful messages that are not errors. Note: this function can be called by multiple threads. The callback function will run on the thread that registered it More...
 

Detailed Description

C API of treelite (this file is used by both runtime and main package)

Copyright (c) 2017 by Contributors

Author
Philip Cho

Definition in file c_api_common.cc.

Function Documentation

int TreeliteRegisterLogCallback ( void(*)(const char *)  callback)

register callback function for LOG(INFO) messages – helpful messages that are not errors. Note: this function can be called by multiple threads. The callback function will run on the thread that registered it

Returns
0 for success, -1 for failure

Definition at line 14 of file c_api_common.cc.