Merge pull request #29 from althonos/master

Add `extern C` blocks to `libips.h` and `libups.h`
This commit is contained in:
Alcaro
2020-03-21 13:34:51 +01:00
committed by GitHub
2 changed files with 18 additions and 0 deletions

View File

@@ -5,6 +5,10 @@
#include "global.h"
#ifdef __cplusplus
extern "C" {
#endif
enum ipserror {
ips_ok,//Patch applied or created successfully.
@@ -39,3 +43,8 @@ void ips_free(struct mem mem);
struct ipsstudy;
enum ipserror ips_study(struct mem patch, struct ipsstudy * study);
enum ipserror ips_apply_study(struct mem patch, struct ipsstudy * study, struct mem in, struct mem * out);
#ifdef __cplusplus
}
#endif

View File

@@ -5,6 +5,10 @@
#include "global.h"
#ifdef __cplusplus
extern "C" {
#endif
//Several of those are unused, but remain there so the remaining ones match bpserror.
enum upserror {
ups_ok,//Patch applied or created successfully.
@@ -33,3 +37,8 @@ enum upserror ups_create(struct mem source, struct mem target, struct mem * patc
// input, nor on anything you got from anywhere else. ups_free is guaranteed to be equivalent to
// calling stdlib.h's free() on mem.ptr.
void ups_free(struct mem mem);
#ifdef __cplusplus
}
#endif