Skip to content

Commit

Permalink
fix export prefix and make shared library world readable
Browse files Browse the repository at this point in the history
  • Loading branch information
andyh2 committed Nov 7, 2019
1 parent c273054 commit cbd0286
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions messaging/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ messaging.so: $(OBJS)
ar -x $(YAML_LIB);

$(CXX) -shared $(LDFLAGS) $^ $(LDLIBS) libs_so/*.o -o '$@'
chmod 644 '$@'
rm -r libs_so

%.a: $(OBJS)
Expand Down
8 changes: 4 additions & 4 deletions messaging/messaging.cc
Original file line number Diff line number Diff line change
Expand Up @@ -50,19 +50,19 @@ Poller * Poller::create(std::vector<SubSocket*> sockets){
return p;
}

extern "C" Context * msgq_context_create() {
extern "C" Context * messaging_context_create() {
return Context::create();
}

extern "C" SubSocket * msgq_subsocket_create(Context* context, const char* endpoint) {
extern "C" SubSocket * messaging_subsocket_create(Context* context, const char* endpoint) {
return SubSocket::create(context, std::string(endpoint));
}

extern "C" PubSocket * msgq_pubsocket_create(Context* context, const char* endpoint) {
extern "C" PubSocket * messaging_pubsocket_create(Context* context, const char* endpoint) {
return PubSocket::create(context, std::string(endpoint));
}

extern "C" Poller * msgq_poller_create(SubSocket** sockets, int size) {
extern "C" Poller * messaging_poller_create(SubSocket** sockets, int size) {
std::vector<SubSocket*> socketsVec(sockets, sockets + size);
return Poller::create(socketsVec);
}

0 comments on commit cbd0286

Please sign in to comment.