44 char cttl[15], cstamp[18];
50 ret = storage_get(pkt->
sm->
st,
"queue",
jid_user(sess->
jid), NULL, &os);
51 if(ret != st_SUCCESS) {
58 o = os_iter_object(os);
60 if(os_object_get_nad(os, o,
"xml", &nad)) {
79 if(stamp + ttl <= time(NULL)) {
91 }
while(os_iter_next(os));
117 for(scan = user->
sessions; scan != NULL; scan = scan->
next) {
141 ret = storage_count(user->
sm->
st,
"queue",
jid_user(user->
jid), NULL, &queuesize);
143 log_debug(
ZONE,
"storage_count ret is %i queue size is %i", ret, queuesize);
168 o = os_object_new(os);
170 os_object_put(o,
"xml", pkt->
nad, os_type_NAD);
225 char cttl[15], cstamp[18];
231 if(storage_get(mi->
mod->
mm->
sm->
st,
"queue",
jid_user(jid), NULL, &os) == st_SUCCESS) {
232 if(os_iter_first(os))
234 o = os_iter_object(os);
236 if(os_object_get_nad(os, o,
"xml", &nad)) {
255 if(stamp + ttl <= time(NULL)) {
267 }
while(os_iter_next(os));
272 storage_delete(mi->
sm->
st,
"queue",
jid_user(jid), NULL);
286 if(mod->
init)
return 0;
291 if (configval != NULL)
295 if (configval != NULL)
299 if (configval != NULL)