From: Enlightenment S. <no-...@en...> - 2010-12-30 22:07:51
|
Log: add parsing for AZY_NET_TRANSPORT_EET Author: discomfitor Date: 2010-12-30 14:07:43 -0800 (Thu, 30 Dec 2010) New Revision: 55781 Trac: http://trac.enlightenment.org/e/changeset/55781 Modified: trunk/PROTO/azy/src/include/Azy.h trunk/PROTO/azy/src/lib/azy_events.c trunk/PROTO/azy/src/lib/azy_server_events.c Modified: trunk/PROTO/azy/src/include/Azy.h =================================================================== --- trunk/PROTO/azy/src/include/Azy.h 2010-12-30 13:44:39 UTC (rev 55780) +++ trunk/PROTO/azy/src/include/Azy.h 2010-12-30 22:07:43 UTC (rev 55781) @@ -187,6 +187,7 @@ AZY_NET_TRANSPORT_UNKNOWN, AZY_NET_TRANSPORT_XML, AZY_NET_TRANSPORT_JSON, + AZY_NET_TRANSPORT_EET, AZY_NET_TRANSPORT_TEXT, AZY_NET_TRANSPORT_HTML } Azy_Net_Transport; Modified: trunk/PROTO/azy/src/lib/azy_events.c =================================================================== --- trunk/PROTO/azy/src/lib/azy_events.c 2010-12-30 13:44:39 UTC (rev 55780) +++ trunk/PROTO/azy/src/lib/azy_events.c 2010-12-30 22:07:43 UTC (rev 55781) @@ -428,13 +428,16 @@ if (!strncmp(content_type, "application/json", 16)) return AZY_NET_TRANSPORT_JSON; + if (!strncmp(content_type, "application/eet", 16)) + return AZY_NET_TRANSPORT_EET; + if (!strncmp(content_type, "text/plain", 10)) return AZY_NET_TRANSPORT_TEXT; if (!strncmp(content_type, "text/html", 9)) return AZY_NET_TRANSPORT_HTML; - return -1; + return AZY_NET_TRANSPORT_UNKNOWN; } Eina_Bool Modified: trunk/PROTO/azy/src/lib/azy_server_events.c =================================================================== --- trunk/PROTO/azy/src/lib/azy_server_events.c 2010-12-30 13:44:39 UTC (rev 55780) +++ trunk/PROTO/azy/src/lib/azy_server_events.c 2010-12-30 22:07:43 UTC (rev 55781) @@ -601,6 +601,7 @@ { case AZY_NET_TRANSPORT_JSON: case AZY_NET_TRANSPORT_XML: + /*case AZY_NET_TRANSPORT_EET:*/ _azy_server_client_rpc(client, client->net->transport); break; |