void start_parsing_filter (mathmap_t *mathmap, top_level_decl_t *decl) { filter_t *filter; g_assert(mathmap->current_filter == NULL); if (lookup_filter(mathmap->filters, decl->name) != NULL) { sprintf(error_string, _("Filter `%s' is defined more than once."), decl->name); error_region = decl->region; JUMP(1); } filter = g_new0(filter_t, 1); filter->kind = FILTER_MATHMAP; filter->name = g_strdup(decl->name); filter->v.mathmap.decl = decl; init_internals(filter); filter->next = mathmap->filters; mathmap->filters = filter; mathmap->current_filter = filter; }
/** * @desc Private constructor that uses IOSocket private constructor * @throw Const char *e * @param fd File descriptor of previously accepted socket * @param keyfile File to read key from * @param certfile File to read cert from */ IOSocketSSL::IOSocketSSL( const int &fd, const char *keyfile, const char *certfile) : IOSocket(fd) { TRACE_CALL(); setKeyFile(keyfile); setCertFile(certfile); init_internals(true); }
bool Copter::AutoTune::init() { // use position hold while tuning if we were in QLOITER bool position_hold = (copter.control_mode == LOITER || copter.control_mode == POSHOLD); return init_internals(position_hold, copter.attitude_control, copter.pos_control, copter.ahrs_view, &copter.inertial_nav); }
/** * @throw Const char *e * @param sock_t Socket Type * @param host Host to connect/bind to * @param port Port to connect/bind to * @param keyfile Keyfile to read private key from * @param certfile File to read certificate from */ IOSocketSSL::IOSocketSSL( const socket_type sock_t, const char *host, const int port, const char *keyfile, const char *certfile) : IOSocket(sock_t, host, port) { TRACE_CALL(); setKeyFile(keyfile); setCertFile(certfile); init_internals(); }