All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
dl.h
Go to the documentation of this file.
1//
2// Copyright 2016 Pixar
3//
4// Licensed under the terms set forth in the LICENSE.txt file available at
5// https://openusd.org/license.
6//
7#ifndef PXR_BASE_TF_DL_H
8#define PXR_BASE_TF_DL_H
9
13
14#include "pxr/pxr.h"
15#include "pxr/base/tf/api.h"
16#include "pxr/base/arch/library.h"
17
18#include <string>
19
20PXR_NAMESPACE_OPEN_SCOPE
21
24
40TF_API
41void* TfDlopen(const std::string &filename,
42 int flag,
43 std::string *error = NULL,
44 bool loadScriptBindings = true);
45
47TF_API
48int TfDlclose(void* handle);
49
51TF_API
52bool Tf_DlOpenIsActive();
54TF_API
55bool Tf_DlCloseIsActive();
56
58
59PXR_NAMESPACE_CLOSE_SCOPE
60
61#endif
TF_API void * TfDlopen(const std::string &filename, int flag, std::string *error=NULL, bool loadScriptBindings=true)
Open a dynamic library and notify lib/tf that a new module has been loaded.
TF_API int TfDlclose(void *handle)
Close a dynamic library.