mirror of
https://github.com/commaai/msgq.git
synced 2026-06-13 00:14:32 +08:00
fix export prefix and make shared library world readable
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user