Changeset 279:844eb81f5228 in verona
Legend:
- Unmodified
- Added
- Removed
-
phapi/phapi.c
r261 r279 1349 1349 assert(vl != NULL); 1350 1350 1351 if ( vl->mobility == PH_LINE_MOBILITY_PHONE)1351 if (checkmobility(vl->mobility,PH_LINE_MOBILITY_PHONE)) 1352 1352 uphone=";user=phone"; 1353 1353 … … 3336 3336 } 3337 3337 3338 if ( mobility == PH_LINE_MOBILITY_FIXED)3338 if (checkmobility(mobility,PH_LINE_MOBILITY_FIXED)) 3339 3339 add_contact_param(vl, "mobility", "fixed", FALSE); 3340 else if ( mobility == PH_LINE_MOBILITY_MOBILE)3340 else if (checkmobility(mobility, PH_LINE_MOBILITY_MOBILE)) 3341 3341 add_contact_param(vl, "mobility", "mobile", FALSE); 3342 else if ( mobility == PH_LINE_MOBILITY_PHONE)3342 else if (checkmobility(mobility,PH_LINE_MOBILITY_PHONE)) 3343 3343 add_contact_param(vl, "user", "phone", TRUE); 3344 3344 -
phapi/phapi.h
r261 r279 196 196 PH_LINE_MOBILITY_FIXED, 197 197 PH_LINE_MOBILITY_MOBILE, 198 PH_LINE_MOBILITY_PHONE 199 }; 200 198 PH_LINE_MOBILITY_PHONE, 199 PH_LINE_MOBILITY_MASK = 255 200 }; 201 #define checkmobility(m, v) ((((m) & PH_LINE_MOBILITY_MASK) == (v))) 201 202 202 203 #ifndef SWIG
Note: See TracChangeset
for help on using the changeset viewer.
