proton/url.h

Go to the documentation of this file.
00001 #ifndef PROTON_URL_H
00002 #define PROTON_URL_H 1
00003 
00004 /*
00005  * Licensed to the Apache Software Foundation (ASF) under one
00006  * or more contributor license agreements.  See the NOTICE file
00007  * distributed with this work for additional information
00008  * regarding copyright ownership.  The ASF licenses this file
00009  * to you under the Apache License, Version 2.0 (the
00010  * "License"); you may not use this file except in compliance
00011  * with the License.  You may obtain a copy of the License at
00012  *
00013  *   http://www.apache.org/licenses/LICENSE-2.0
00014  *
00015  * Unless required by applicable law or agreed to in writing,
00016  * software distributed under the License is distributed on an
00017  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
00018  * KIND, either express or implied.  See the License for the
00019  * specific language governing permissions and limitations
00020  * under the License.
00021  */
00022 
00023 #include <proton/import_export.h>
00024 
00025 #ifdef __cplusplus
00026 extern "C" {
00027 #endif
00028 
00041 typedef struct pn_url_t pn_url_t;
00042 
00046 PNX_EXTERN pn_url_t *pn_url(void);
00047 
00066 PNX_EXTERN pn_url_t *pn_url_parse(const char *url);
00067 
00070 PNX_EXTERN void pn_url_free(pn_url_t *url);
00071 
00075 PNX_EXTERN void pn_url_clear(pn_url_t *url);
00076 
00083 PNX_EXTERN const char *pn_url_str(pn_url_t *url);
00084 
00092 PNX_EXTERN const char *pn_url_get_scheme(pn_url_t *url);
00093 PNX_EXTERN const char *pn_url_get_username(pn_url_t *url);
00094 PNX_EXTERN const char *pn_url_get_password(pn_url_t *url);
00095 PNX_EXTERN const char *pn_url_get_host(pn_url_t *url);
00096 PNX_EXTERN const char *pn_url_get_port(pn_url_t *url);
00097 PNX_EXTERN const char *pn_url_get_path(pn_url_t *url);
00110 PNX_EXTERN void pn_url_set_scheme(pn_url_t *url, const char *scheme);
00111 PNX_EXTERN void pn_url_set_username(pn_url_t *url, const char *username);
00112 PNX_EXTERN void pn_url_set_password(pn_url_t *url, const char *password);
00113 PNX_EXTERN void pn_url_set_host(pn_url_t *url, const char *host);
00114 PNX_EXTERN void pn_url_set_port(pn_url_t *url, const char *port);
00115 PNX_EXTERN void pn_url_set_path(pn_url_t *url, const char *path);
00124 #ifdef __cplusplus
00125 }
00126 #endif
00127 
00128 #endif /* url.h */

Generated on 28 Nov 2017 for Qpid Proton C by  doxygen 1.6.1