diff options
| author | Andreas Baumann <mail@andreasbaumann.cc> | 2018-06-01 11:14:05 +0200 |
|---|---|---|
| committer | Sven Nierlein <sven@nierlein.de> | 2018-10-22 16:30:31 +0200 |
| commit | d6491ba403d37abf54e56c96fb5c7b808943b5d3 (patch) | |
| tree | ab7f5da00831e146ef71b55a47b14ba43cdcec6b /plugins/uriparser/UriIp4Base.h | |
| parent | 46c5b54254026a170006cdcdbe1ffe38771274cb (diff) | |
| download | monitoring-plugins-d6491ba403d37abf54e56c96fb5c7b808943b5d3.tar.gz | |
removed embedded uriparser library, added --with-uriparser configure option
to use uriparser library from the system
Diffstat (limited to 'plugins/uriparser/UriIp4Base.h')
| -rw-r--r-- | plugins/uriparser/UriIp4Base.h | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/plugins/uriparser/UriIp4Base.h b/plugins/uriparser/UriIp4Base.h deleted file mode 100644 index 23b838e2..00000000 --- a/plugins/uriparser/UriIp4Base.h +++ /dev/null | |||
| @@ -1,59 +0,0 @@ | |||
| 1 | /* | ||
| 2 | * uriparser - RFC 3986 URI parsing library | ||
| 3 | * | ||
| 4 | * Copyright (C) 2007, Weijia Song <songweijia@gmail.com> | ||
| 5 | * Copyright (C) 2007, Sebastian Pipping <webmaster@hartwork.org> | ||
| 6 | * All rights reserved. | ||
| 7 | * | ||
| 8 | * Redistribution and use in source and binary forms, with or without | ||
| 9 | * modification, are permitted provided that the following conditions | ||
| 10 | * are met: | ||
| 11 | * | ||
| 12 | * * Redistributions of source code must retain the above | ||
| 13 | * copyright notice, this list of conditions and the following | ||
| 14 | * disclaimer. | ||
| 15 | * | ||
| 16 | * * Redistributions in binary form must reproduce the above | ||
| 17 | * copyright notice, this list of conditions and the following | ||
| 18 | * disclaimer in the documentation and/or other materials | ||
| 19 | * provided with the distribution. | ||
| 20 | * | ||
| 21 | * * Neither the name of the <ORGANIZATION> nor the names of its | ||
| 22 | * contributors may be used to endorse or promote products | ||
| 23 | * derived from this software without specific prior written | ||
| 24 | * permission. | ||
| 25 | * | ||
| 26 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS | ||
| 27 | * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT | ||
| 28 | * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS | ||
| 29 | * FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
| 30 | * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
| 31 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES | ||
| 32 | * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 33 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) | ||
| 34 | * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, | ||
| 35 | * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) | ||
| 36 | * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED | ||
| 37 | * OF THE POSSIBILITY OF SUCH DAMAGE. | ||
| 38 | */ | ||
| 39 | |||
| 40 | #ifndef URI_IP4_BASE_H | ||
| 41 | #define URI_IP4_BASE_H 1 | ||
| 42 | |||
| 43 | |||
| 44 | |||
| 45 | typedef struct UriIp4ParserStruct { | ||
| 46 | unsigned char stackCount; | ||
| 47 | unsigned char stackOne; | ||
| 48 | unsigned char stackTwo; | ||
| 49 | unsigned char stackThree; | ||
| 50 | } UriIp4Parser; | ||
| 51 | |||
| 52 | |||
| 53 | |||
| 54 | void uriPushToStack(UriIp4Parser * parser, unsigned char digit); | ||
| 55 | void uriStackToOctet(UriIp4Parser * parser, unsigned char * octet); | ||
| 56 | |||
| 57 | |||
| 58 | |||
| 59 | #endif /* URI_IP4_BASE_H */ | ||
