aboutsummaryrefslogtreecommitdiffstats
path: root/erts/emulator/beam/global.h
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2017-02-03 17:40:45 +0100
committerSverker Eriksson <[email protected]>2017-02-03 17:40:45 +0100
commit7111434c0eb1fdd6576a99ca94cdc2b20be9b9af (patch)
treefe7c29f305a8b9d5bb57bfe513967f721dc9ef51 /erts/emulator/beam/global.h
parent3fe6f3c0caecec522c7e14353eda6bbb86c9e8d6 (diff)
downloadotp-7111434c0eb1fdd6576a99ca94cdc2b20be9b9af.tar.gz
otp-7111434c0eb1fdd6576a99ca94cdc2b20be9b9af.tar.bz2
otp-7111434c0eb1fdd6576a99ca94cdc2b20be9b9af.zip
erts: Rename ErlNifResource as ErtsResource
as it's not part of the API
Diffstat (limited to 'erts/emulator/beam/global.h')
-rw-r--r--erts/emulator/beam/global.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/erts/emulator/beam/global.h b/erts/emulator/beam/global.h
index 91e5bbbd98..86c38f8e8c 100644
--- a/erts/emulator/beam/global.h
+++ b/erts/emulator/beam/global.h
@@ -71,7 +71,7 @@ struct enif_resource_type_t
Eterm module;
Eterm name;
};
-typedef struct enif_resource_t
+typedef struct
{
struct enif_resource_type_t* type;
#ifdef DEBUG
@@ -82,14 +82,14 @@ typedef struct enif_resource_t
#endif
char data[1];
-}ErlNifResource;
+}ErtsResource;
-#define DATA_TO_RESOURCE(PTR) ((ErlNifResource*)((char*)(PTR) - offsetof(ErlNifResource,data)))
+#define DATA_TO_RESOURCE(PTR) ((ErtsResource*)((char*)(PTR) - offsetof(ErtsResource,data)))
extern void erts_pre_nif(struct enif_environment_t*, Process*,
struct erl_module_nif*, Process* tracee);
extern void erts_post_nif(struct enif_environment_t* env);
-extern void erts_resource_stop(ErlNifResource*, ErlNifEvent, int is_direct_call);
+extern void erts_resource_stop(ErtsResource*, ErlNifEvent, int is_direct_call);
extern Eterm erts_nif_taints(Process* p);
extern void erts_print_nif_taints(fmtfn_t to, void* to_arg);
void erts_unload_nif(struct erl_module_nif* nif);