int daemon_initialize() { /* init processing for each protocol manager */ if(stomp_init() == RET_ERROR) { perror("failed to initialize stomp bucket"); return RET_ERROR; } if(transaction_init() == RET_ERROR) { perror("failed to initialize transaction_manager"); return RET_ERROR; } return RET_SUCCESS; }
int daemon_initialize(newt_config *config) { /* init processing for each protocol manager */ if(stomp_init() == RET_ERROR) { perror("failed to initialize stomp bucket"); return RET_ERROR; } if(transaction_init() == RET_ERROR) { perror("failed to initialize transaction_manager"); return RET_ERROR; } if(initialize_sending_worker() == RET_ERROR) { return RET_ERROR; } if(initialize_persistent_worker(config) == RET_ERROR) { return RET_ERROR; } unpersist(); // get persistent frames and reinstate them return RET_SUCCESS; }