4 * Copyright (c) 2010-2011 Samsung Electronics Co., Ltd. All rights reserved.
6 * Contact: Youngae Kang <youngae.kang@samsung.com>, Yunhan Kim <yhan.kim@samsung.com>,
7 * Genie Kim <daejins.kim@samsung.com>, Minjune Kim <sena06.kim@samsung.com>
9 * Licensed under the Apache License, Version 2.0 (the "License");
10 * you may not use this file except in compliance with the License.
11 * You may obtain a copy of the License at
13 * http://www.apache.org/licenses/LICENSE-2.0
15 * Unless required by applicable law or agreed to in writing, software
16 * distributed under the License is distributed on an "AS IS" BASIS,
17 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18 * See the License for the specific language governing permissions and
19 * limitations under the License.
22 #ifndef _DECARTA_XML_H_
23 #define _DECARTA_XML_H_
27 #include "decarta_types.h"
28 #include "decarta_route.h"
29 #include "decarta_geocode.h"
30 #include "decarta_directory.h"
31 #include "decarta_maps.h"
35 gboolean xml_route_request_get (const DecartaRouteRequest *request, char **xml_request, unsigned int *size);
36 gboolean xml_route_parse (const char* xml_response, DecartaRoute **route, char **req_id, char **error_code, char **message);
38 gboolean xml_map_request_get (const DecartaPosition *pos, int zoom, char **xml_request, unsigned int *size);
39 gboolean xml_map_parse (const char* xml_response, DecartaMap **map);
41 gboolean xml_reverse_geocode_request_get (const DecartaPosition *pos, char **xml_request, unsigned int *size);
42 gboolean xml_reverse_geocode_parse (const char* xml_response, DecartaGeocode** geocode);
43 gboolean xml_geocode_request_get (const DecartaAddress *addr, char **xml_request, unsigned int *size);
44 gboolean xml_geocode_parse (const char* xml_response, GList** geocode_list);
46 gboolean xml_directory_request_get (const DecartaDirectoryRequest *request, char **xml_request, unsigned int *size);
47 gboolean xml_directory_parse (const char* xml_response, GList** poi_list, char **req_id, char **error_code, char **message);