add export

Signed-off-by: 萌萌萌新 <yaoji2@huawei.com>
This commit is contained in:
萌萌萌新 2024-07-25 19:50:53 +08:00
parent e6edca1118
commit 12cfa1da3e
2 changed files with 5 additions and 4 deletions

View File

@ -21,8 +21,8 @@
#include <cstdint>
extern "C" {
RetDataI32 FfiOHOSErrorManagerOn(char* onType, CErrorObserver observer);
int FfiOHOSErrorManagerOff(char* offType, int observerId);
FFI_EXPORT RetDataI32 FfiOHOSErrorManagerOn(char* onType, CErrorObserver observer);
FFI_EXPORT int FfiOHOSErrorManagerOff(char* offType, int observerId);
}
#endif

View File

@ -14,8 +14,9 @@
*/
#include <cstdint>
#define FFI_EXPORT __attribute__((visibility("default")))
extern "C" {
int FfiOHOSErrorManagerOn();
int FfiOHOSErrorManagerOff();
FFI_EXPORT int FfiOHOSErrorManagerOn();
FFI_EXPORT int FfiOHOSErrorManagerOff();
}