Skip to content

Commit

Permalink
fix extern c
Browse files Browse the repository at this point in the history
  • Loading branch information
Littlefisher619 committed Oct 22, 2023
1 parent 4537331 commit b147b43
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions runtime/src/bpftime_shm_json.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,11 @@ int bpftime::bpftime_import_shm_handler_from_json(bpftime_shm &shm, int fd,
return import_shm_handler_from_json(shm, fd, j);
}

extern "C" int bpftime_import_shm_handler_from_json(int fd, const char *json_string) {
return bpftime::bpftime_import_shm_handler_from_json(
shm_holder.global_shared_memory, fd, json_string);
}

int bpftime::bpftime_import_shm_from_json(bpftime_shm &shm,
const char *filename)
{
Expand Down

0 comments on commit b147b43

Please sign in to comment.