| 59 | #define int2p(_i) (void *)(unsigned long)(_i) |
| 60 | |
| 61 | int init_global_avps(void) |
| 62 | { |
| 63 | /* initialize map for static avps */ |
| 64 | avp_map = map_create(0); |
| 65 | if (!avp_map) { |
| 66 | LM_ERR("cannot create avp_map\n"); |
| 67 | return -1; |
| 68 | } |
| 69 | return 0; |
| 70 | } |
| 71 | |
| 72 | |
| 73 | int init_extra_avps(void) |