Stefan Schuermans commited on 2017-06-04 16:21:24
              Showing 1 changed files, with 7 additions and 6 deletions.
            
| ... | ... | @@ -148,8 +148,8 @@ static bool get_config(dimeModel const &model, | 
| 148 | 148 | * @param[in] vp_ctx context pointer | 
| 149 | 149 | * @return if to continue enumeration | 
| 150 | 150 | */ | 
| 151 | -bool cbEntity(const class dimeState * const state, class dimeEntity *entity, | |
| 152 | - void *vp_ctx) | |
| 151 | +static bool cbEntity(const class dimeState * const state, | |
| 152 | + class dimeEntity *entity, void *vp_ctx) | |
| 153 | 153 |  { | 
| 154 | 154 | (void)vp_ctx; | 
| 155 | 155 |  | 
| ... | ... | @@ -215,7 +215,7 @@ bool cbEntity(const class dimeState * const state, class dimeEntity *entity, | 
| 215 | 215 | * @param[in] pObjCable cable to first pixel | 
| 216 | 216 | * @return 0 on success, -1 on error | 
| 217 | 217 | */ | 
| 218 | -int createChain(Chain &chain, const Object *pObjCable) | |
| 218 | +static int createChain(Chain &chain, const Object *pObjCable) | |
| 219 | 219 |  { | 
| 220 | 220 | // add all pixels | 
| 221 | 221 | const Object *pObjPixel = NULL; | 
| ... | ... | @@ -288,7 +288,7 @@ int createChain(Chain &chain, const Object *pObjCable) | 
| 288 | 288 | } | 
| 289 | 289 |  | 
| 290 | 290 | /// sort helper for distributor/cables intersections | 
| 291 | -bool intersectsCablesSort(const Layer::Intersection& i1, | |
| 291 | +static bool intersectsCablesSort(const Layer::Intersection& i1, | |
| 292 | 292 | const Layer::Intersection& i2) | 
| 293 | 293 |  { | 
| 294 | 294 | return i1.pt.abs_sq() < i2.pt.abs_sq(); | 
| ... | ... | @@ -301,7 +301,8 @@ bool intersectsCablesSort(const Layer::Intersection& i1, | 
| 301 | 301 | * @param[in] pixels number of pixels per chain | 
| 302 | 302 | * @return 0 on success, -1 on error | 
| 303 | 303 | */ | 
| 304 | -int createDistri(Distri &distri, const Layer *pLayer, unsigned int pixels) | |
| 304 | +static int createDistri(Distri &distri, const Layer *pLayer, | |
| 305 | + unsigned int pixels) | |
| 305 | 306 |  { | 
| 306 | 307 | // must have exactly one object | 
| 307 | 308 |    if (pLayer->mObjects.size() != 1) { | 
| ... | ... | @@ -352,7 +353,7 @@ int createDistri(Distri &distri, const Layer *pLayer, unsigned int pixels) | 
| 352 | 353 | * @param[in] height height of video in pixels | 
| 353 | 354 | * @param[in] distris distributor objects | 
| 354 | 355 | */ | 
| 355 | -int writeCfg(unsigned int width, unsigned int height, | |
| 356 | +static int writeCfg(unsigned int width, unsigned int height, | |
| 356 | 357 | const std::vector<Distri> &distris, | 
| 357 | 358 | const std::string & strCfgFileName) | 
| 358 | 359 |  { | 
| 359 | 360 |