| 158 | } |
| 159 | |
| 160 | static int l_siplua_getExpires(lua_State *L) |
| 161 | { |
| 162 | struct sipapi_object *o; |
| 163 | int expires; |
| 164 | |
| 165 | o = luaL_checkudata(L, 1, "siplua.api"); |
| 166 | /* siplua_log(L_DBG, "BEFORE"); */ |
| 167 | expires = sipapi_getExpires(o->msg); |
| 168 | /* siplua_log(L_DBG, "AFTER"); */ |
| 169 | if (expires != -1) |
| 170 | lua_pushinteger(L, expires); |
| 171 | else |
| 172 | lua_pushnil(L); |
| 173 | return 1; |
| 174 | } |
| 175 | |
| 176 | static int l_siplua_getHeader(lua_State *L) |
| 177 | { |
nothing calls this directly
no test coverage detected