Skip to content
Snippets Groups Projects
Commit 2e143630 authored by edgrif's avatar edgrif
Browse files

small format change.

parent e861655f
No related branches found
No related tags found
No related merge requests found
......@@ -25,11 +25,12 @@
*
* Description:
*
* Exported functions: See XXXXXXXXXXXXX.h
* Exported functions: See zmapControl_P.h
*
* HISTORY:
* Last edited: Jul 16 15:51 2007 (rds)
* Last edited: Dec 16 14:58 2008 (edgrif)
* Created: Thu Jul 12 14:54:52 2007 (rds)
* CVS info: $Id: zmapControlRemoteSend.c,v 1.1 2007-07-18 13:30:24 rds Exp $
* CVS info: $Id: zmapControlRemoteSend.c,v 1.2 2008-12-18 13:28:31 edgrif Exp $
*-------------------------------------------------------------------
*/
......@@ -66,20 +67,26 @@ static gboolean xml_zmap_end_cb(gpointer user_data, ZMapXMLElement element,
ZMapXMLParser parser);
static ZMapXMLUtilsEventStackStruct wrap_start_G[] = {
{ZMAPXML_START_ELEMENT_EVENT, "zmap", ZMAPXML_EVENT_DATA_NONE, {0}},
{ZMAPXML_ATTRIBUTE_EVENT, "action", ZMAPXML_EVENT_DATA_QUARK, {NULL}},
{0}
}, wrap_end_G[] = {
{ZMAPXML_END_ELEMENT_EVENT, "zmap", ZMAPXML_EVENT_DATA_NONE, {0}},
{0}
};
static ZMapXMLUtilsEventStackStruct wrap_start_G[] =
{
{ZMAPXML_START_ELEMENT_EVENT, "zmap", ZMAPXML_EVENT_DATA_NONE, {0}},
{ZMAPXML_ATTRIBUTE_EVENT, "action", ZMAPXML_EVENT_DATA_QUARK, {NULL}},
{0}
} ;
static ZMapXMLUtilsEventStackStruct wrap_end_G[] =
{
{ZMAPXML_END_ELEMENT_EVENT, "zmap", ZMAPXML_EVENT_DATA_NONE, {0}},
{0}
} ;
static ZMapXMLObjTagFunctionsStruct response_starts_G[] = {
{"zmap", xml_zmap_start_cb },
{"response", xml_response_start_cb },
{ NULL, NULL}
};
static ZMapXMLObjTagFunctionsStruct response_ends_G[] = {
{"zmap", xml_zmap_end_cb },
{"error", xml_error_end_cb },
......@@ -242,6 +249,7 @@ static int xml_event_to_buffer(ZMapXMLWriter writer, char *xml, int len, gpointe
return len;
}
static gboolean xml_zmap_start_cb(gpointer user_data, ZMapXMLElement element,
ZMapXMLParser parser)
{
......@@ -250,6 +258,17 @@ static gboolean xml_zmap_start_cb(gpointer user_data, ZMapXMLElement element,
return TRUE;
}
static gboolean xml_zmap_end_cb(gpointer user_data, ZMapXMLElement element,
ZMapXMLParser parser)
{
if(alert_client_debug_G)
zMapLogWarning("In zmap %s Handler.", "End");
return TRUE;
}
static gboolean xml_response_start_cb(gpointer user_data, ZMapXMLElement element,
ZMapXMLParser parser)
{
......@@ -285,10 +304,3 @@ static gboolean xml_error_end_cb(gpointer user_data, ZMapXMLElement element,
return TRUE;
}
static gboolean xml_zmap_end_cb(gpointer user_data, ZMapXMLElement element,
ZMapXMLParser parser)
{
if(alert_client_debug_G)
zMapLogWarning("In zmap %s Handler.", "End");
return TRUE;
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment