23 lines
425 B
C
23 lines
425 B
C
|
#ifndef DP_COMMON_H
|
||
|
#define DP_COMMON_H
|
||
|
|
||
|
#include <nng/nng.h>
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
extern "C" {
|
||
|
#endif
|
||
|
|
||
|
void dp_nng_fatal(const char *const msg, int rv);
|
||
|
void dp_errno_fatal(const char *const msg);
|
||
|
|
||
|
nng_socket make_ctrl_pub(const char *url);
|
||
|
nng_socket make_ctrl_sub(const char *url);
|
||
|
nng_socket make_doom_pub(const char *url);
|
||
|
nng_socket make_doom_sub(const char *url);
|
||
|
|
||
|
#ifdef __cplusplus
|
||
|
}
|
||
|
#endif
|
||
|
|
||
|
#endif /* DP_COMMON_H */
|