int InterfaceNanostack::connect() { nsapi_error_t error = do_initialize(); if (error) { return error; } return _interface->bringup(false, NULL, NULL, NULL, IPV6_STACK, _blocking); }
/*==========================================================================* * printer_open * *==========================================================================*/ static int printer_open(devminor_t UNUSED(minor), int UNUSED(access), endpoint_t UNUSED(user_endpt)) { /* Initialize on first open. */ static int initialized = FALSE; if (!initialized) { do_initialize(); initialized = TRUE; } return OK; }
nsapi_error_t MeshInterfaceNanostack::initialize(NanostackRfPhy *phy) { if (_phy && phy && _phy != phy) { error("Phy already set"); return NSAPI_ERROR_IS_CONNECTED; } if (phy) { _phy = phy; } if (_phy) { return do_initialize(); } else { return NSAPI_ERROR_PARAMETER; } }
bool sc_trace_file_base::initialize() { if( initialized_ ) return false; initialized_ = true; if( !tracing_initialized_ ) { tracing_initialized_ = true; bool running_regression = ( getenv( "SYSTEMC_REGRESSION" ) != NULL ); // hide some messages during regression if( running_regression ) { sc_report_handler::set_actions( SC_ID_TRACING_TIMESCALE_DEFAULT_ , SC_INFO, SC_DO_NOTHING ); sc_report_handler::set_actions( SC_ID_TRACING_VCD_DUPLICATE_TIME_ , SC_WARNING, SC_DO_NOTHING ); } } // open trace file if(!fp) open_fp(); // setup timescale if( !timescale_set_by_user ) { timescale_unit = sc_get_time_resolution().to_seconds(); std::stringstream ss; ss << sc_get_time_resolution() << " (" << filename_ << ")"; SC_REPORT_INFO( SC_ID_TRACING_TIMESCALE_DEFAULT_ , ss.str().c_str() ); } // initialize derived tracing implementation class (VCD/WIF) do_initialize(); return initialized_; }
int SrsDH::initialize(bool ensure_128bytes_public_key) { int ret = ERROR_SUCCESS; for (;;) { if ((ret = do_initialize()) != ERROR_SUCCESS) { return ret; } if (ensure_128bytes_public_key) { int32_t key_size = BN_num_bytes(pdh->pub_key); if (key_size != 128) { srs_warn("regenerate 128B key, current=%dB", key_size); continue; } } break; } return ret; }
StaticInitializer() { do_initialize(); }
void MovedSingletonContainer::initialize() { ParticleIndexes pt = do_initialize(); swap(pt); }
/** * Return an initialized process state. See do_initialize for details of * how this is implemented in certain situations */ proc_t * attach_to_process () { do_initialize (_state); return _state; }