MCPcopy Create free account
hub / github.com/RangeNetworks/openbts / configGetNumQ

Function configGetNumQ

GPRS/MAC.cpp:97–106  ·  view source on GitHub ↗

Get the number quietly. Use this for debug options we dont need the user to see.

Source from the content-addressed store, hash-verified

95// Get the number quietly.
96// Use this for debug options we dont need the user to see.
97int configGetNumQ(const char *name, int defaultvalue)
98{
99 if (gConfig.defines(name)) {
100 //return gConfig.getNum(name,defaultvalue);
101 const char *strval = gConfig.getStr(name).c_str();
102 return strtol(strval,NULL,0); // strtol allows hex
103 } else {
104 return defaultvalue;
105 }
106}
107
108// Dont bother with a fancy specification (eg: 2x4) because we are going
109// to dynamically allocate channels soon.

Callers 6

msServiceMethod · 0.85
macConfigInitMethod · 0.85
disabledByDutyFactorFunction · 0.85
serviceLoopSynchronizeFunction · 0.85
engineRecvAckNackMethod · 0.85
engineFillBlockMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected