blob: 05e7b506f7d1a33cfab75bc98c9022f36c06e3b5 (
plain) (
tree)
|
|
#include "salticidae/config.h"
#ifdef SALTICIDAE_CBINDINGS
#include "salticidae/network.h"
using namespace salticidae;
extern "C" {
// MsgNetwork
msgnetwork_config_t *msgnetwork_config_new() {
return new msgnetwork_config_t();
}
void msgnetwork_config_free(const msgnetwork_config_t *self) { delete self; }
msgnetwork_t *msgnetwork_new(const eventcontext_t *ec, const msgnetwork_config_t *config, SalticidaeCError *cerror) {
SALTICIDAE_CERROR_TRY(cerror)
return new msgnetwork_t(*ec, *config);
SALTICIDAE_CERROR_CATCH(cerror)
return nullptr;
}
void msgnetwork_free(const msgnetwork_t *self) {
|