mirror of
https://github.com/nasa/trick.git
synced 2024-12-18 20:57:55 +00:00
Revert "Added support for message publishers in C interface"
This reverts commit e3233891d7
.
This commit is contained in:
parent
e3233891d7
commit
a714acda13
@ -9,9 +9,6 @@
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
int message_add_subscriber( void * in_ms ) ;
|
||||
int message_remove_subscriber( void * in_ms ) ;
|
||||
void * message_get_subscriber( const char * sub_name) ;
|
||||
int message_publish(int level, const char *format_msg, ...) ;
|
||||
int message_publish_standalone(int level, const char *format_msg, ...) ;
|
||||
int send_hs(FILE * fp, const char *format_msg, ...) ;
|
||||
|
@ -24,7 +24,7 @@ int message_subscribe( Trick::MessageSubscriber * in_ms ) {
|
||||
the_message_publisher->subscribe(in_ms) ;
|
||||
return(0) ;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@relates Trick::MessagePublisher
|
||||
@copydoc Trick::MessagePublisher::unsubscribe
|
||||
@ -34,33 +34,6 @@ int message_unsubscribe( Trick::MessageSubscriber * in_ms ) {
|
||||
return(0) ;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
@relates Trick::MessagePublisher
|
||||
@copydoc Trick::MessagePublisher::subscribe
|
||||
*/
|
||||
extern "C" int message_add_subscriber( void * in_ms ) {
|
||||
the_message_publisher->subscribe((Trick::MessageSubscriber *)in_ms) ;
|
||||
return(0) ;
|
||||
}
|
||||
|
||||
/**
|
||||
@relates Trick::MessagePublisher
|
||||
@copydoc Trick::MessagePublisher::unsubscribe
|
||||
*/
|
||||
extern "C" int message_remove_subscriber( void * in_ms ) {
|
||||
the_message_publisher->unsubscribe((Trick::MessageSubscriber *)in_ms) ;
|
||||
return(0) ;
|
||||
}
|
||||
|
||||
/**
|
||||
@relates Trick::MessagePublisher
|
||||
@copydoc Trick::MessagePublisher::getSubscriber
|
||||
*/
|
||||
extern "C" void * message_get_subscriber( const char * sub_name ) {
|
||||
return (void *)the_message_publisher->getSubscriber(sub_name) ;
|
||||
}
|
||||
|
||||
/**
|
||||
@relates Trick::MessagePublisher
|
||||
@userdesc Command to publish a message, which sends the message to all subscribers.
|
||||
|
Loading…
Reference in New Issue
Block a user