[asterisk-commits] eliel: branch group/data_api_gsoc2009 r206018 - /team/group/data_api_gsoc2009...

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Sat Jul 11 11:09:07 CDT 2009


Author: eliel
Date: Sat Jul 11 11:09:02 2009
New Revision: 206018

URL: http://svn.asterisk.org/svn-view/asterisk?view=rev&rev=206018
Log:
At the moment i don't know how to get the offset of a bit-field, so
add them manually to the result tree.


Modified:
    team/group/data_api_gsoc2009/apps/app_queue.c

Modified: team/group/data_api_gsoc2009/apps/app_queue.c
URL: http://svn.asterisk.org/svn-view/asterisk/team/group/data_api_gsoc2009/apps/app_queue.c?view=diff&rev=206018&r1=206017&r2=206018
==============================================================================
--- team/group/data_api_gsoc2009/apps/app_queue.c (original)
+++ team/group/data_api_gsoc2009/apps/app_queue.c Sat Jul 11 11:09:02 2009
@@ -7411,7 +7411,7 @@
 	AST_DATA_STRUCTURE_MEMBER(sound_callerannounce, AST_DATA_STRING, struct call_queue),
 	AST_DATA_STRUCTURE_MEMBER(sound_reporthold, AST_DATA_STRING, struct call_queue),
 
-	/* XXX Missing bit fields. */
+	/* XXX Missing bit fields. Adding them manually */
 
 	AST_DATA_STRUCTURE_MEMBER(announcepositionlimit, AST_DATA_INTEGER, struct call_queue),
 	AST_DATA_STRUCTURE_MEMBER(announcefrequency, AST_DATA_INTEGER, struct call_queue),
@@ -7487,6 +7487,24 @@
 
 		ast_data_add_structure(data_queue, data_structure_call_queue,
 			ARRAY_LEN(data_structure_call_queue), queue);
+
+
+		/* bit fields not supported in add_structure */
+		ast_data_add_bool(data_queue, "dead", queue->dead);
+		ast_data_add_bool(data_queue, "eventwhencalled", queue->eventwhencalled);
+		ast_data_add_bool(data_queue, "ringinuse", queue->ringinuse);
+		ast_data_add_bool(data_queue, "setinterfacevar", queue->setinterfacevar);
+		ast_data_add_bool(data_queue, "setqueuevar", queue->setqueuevar);
+		ast_data_add_bool(data_queue, "setqueueentryvar", queue->setqueueentryvar);
+		ast_data_add_bool(data_queue, "reportholdtime", queue->reportholdtime);
+		ast_data_add_bool(data_queue, "wrapped", queue->wrapped);
+		ast_data_add_bool(data_queue, "timeoutrestart", queue->timeoutrestart);
+		ast_data_add_int(data_queue, "announceholdtime", queue->announceholdtime);
+		ast_data_add_int(data_queue, "announceposition", queue->announceposition);
+		ast_data_add_int(data_queue, "strategy", queue->strategy);
+		ast_data_add_bool(data_queue, "maskmemberstatus", queue->maskmemberstatus);
+		ast_data_add_bool(data_queue, "realtime", queue->realtime);
+		ast_data_add_bool(data_queue, "found", queue->found);
 
 		if (queue->members) {
 			data_members = ast_data_add_node(data_queue, "members");




More information about the asterisk-commits mailing list