[llvm-c] Expose LLVMLoadLibraryPermanently
[oota-llvm.git] / include / llvm-c / Support.h
1 /*===-- llvm-c/Support.h - Support C Interface --------------------*- C -*-===*\
2 |*                                                                            *|
3 |*                     The LLVM Compiler Infrastructure                       *|
4 |*                                                                            *|
5 |* This file is distributed under the University of Illinois Open Source      *|
6 |* License. See LICENSE.TXT for details.                                      *|
7 |*                                                                            *|
8 |*===----------------------------------------------------------------------===*|
9 |*                                                                            *|
10 |* This file defines the C interface to the LLVM support library.             *|
11 |*                                                                            *|
12 \*===----------------------------------------------------------------------===*/
13
14 #ifndef LLVM_C_SUPPORT_H
15 #define LLVM_C_SUPPORT_H
16
17 #include "llvm-c/Core.h"
18 #include "llvm/Support/DynamicLibrary.h"
19
20 #ifdef __cplusplus
21 extern "C" {
22 #endif
23
24 /**
25  * This function permanently loads the dynamic library at the given path.
26  * It is safe to call this function multiple times for the same library.
27  *
28  * @see sys::DynamicLibrary::LoadLibraryPermanently()
29   */
30 LLVMBool LLVMLoadLibraryPermanently(const char* Filename);
31
32 #ifdef __cplusplus
33 }
34 #endif
35
36 #endif