Turi Create
4.0
capi_initialization.hpp
1
/* Copyright © 2018 Apple Inc. All rights reserved.
2
*
3
* Use of this source code is governed by a BSD-3-clause license that can
4
* be found in the LICENSE.txt file or at https://opensource.org/licenses/BSD-3-Clause
5
*/
6
#ifndef TURI_CAPI_INITIALIZATION
7
#define TURI_CAPI_INITIALIZATION
8
9
#include <model_server/lib/unity_global.hpp>
10
11
namespace
turi
{
12
13
/** The server initializer function.
14
*
15
* This function creates the server initializer for the C-API, which is what
16
* determines which models and functions are registered to the unity sever,
17
* which then determines what models are packaged in the framework and
18
* available from the C-API.
19
*
20
* In some cases, it may be desirable to have a custom server initializer, for
21
* example if only a subset of the models are needed. In this case, define the
22
* macro CAPI_DISABLE_DEFAULT_SERVER_INITIALIZER and create a custom
23
* implementation of that function to be compiled in. In addition, the CMakeLists.txt
24
*/
25
std::shared_ptr<turi::unity_server_initializer>
capi_server_initializer
();
26
27
}
28
29
#endif
turi::capi_server_initializer
std::shared_ptr< turi::unity_server_initializer > capi_server_initializer()
turi
SKD.
Definition:
capi_initialization.hpp:11
capi
impl
capi_initialization.hpp
Generated by
1.8.13