X-Git-Url: http://git.archive.openwrt.org/?p=project%2Fuclient.git;a=blobdiff_plain;f=uclient-utils.h;h=a4f975d6bd8363e06524dd3f22aaf9182fe241d5;hp=83ab09ae1df1393ab8139b8764bd59aac703a635;hb=81fdb8fdf1470e1c7bf3124ff20d17feaeb519ee;hpb=7401d5c1100a35dd5eafa602fad6d334dea98225;ds=sidebyside diff --git a/uclient-utils.h b/uclient-utils.h index 83ab09a..a4f975d 100644 --- a/uclient-utils.h +++ b/uclient-utils.h @@ -1,3 +1,20 @@ +/* + * uclient - ustream based protocol client library + * + * Copyright (C) 2014 Felix Fietkau + * + * Permission to use, copy, modify, and/or distribute this software for any + * purpose with or without fee is hereby granted, provided that the above + * copyright notice and this permission notice appear in all copies. + * + * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES + * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF + * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR + * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES + * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN + * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF + * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + */ #ifndef __UCLIENT_UTILS_H #define __UCLIENT_UTILS_H @@ -27,4 +44,6 @@ int uclient_urldecode(const char *in, char *out, bool decode_plus); void http_digest_calculate_auth_hash(char *dest, const char *user, const char *realm, const char *password); void http_digest_calculate_response(char *dest, const struct http_digest_data *data); +char *uclient_get_url_filename(const char *url, const char *default_name); + #endif