diff options
| author | David M. Syzdek <david@syzdek.net> | 2022-03-08 16:17:51 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2022-03-08 16:17:51 -0900 |
| commit | 3ed177de936c00797ee5f8357e5bf11a91c32132 (patch) | |
| tree | b699fb4fbb96d52f5f8f81661c66a4822d875c96 /include/trutils.h | |
| parent | 2d0251490bde79ec11da842f736a54d962ec1900 (diff) | |
| download | tinyrad-3ed177de936c00797ee5f8357e5bf11a91c32132.tar.gz tinyrad-3ed177de936c00797ee5f8357e5bf11a91c32132.tar.bz2 tinyrad-3ed177de936c00797ee5f8357e5bf11a91c32132.tar.xz tinyrad-3ed177de936c00797ee5f8357e5bf11a91c32132.zip | |
libtrutils: adding library
Diffstat (limited to '')
| -rw-r--r-- | include/trutils.h | 90 |
1 files changed, 90 insertions, 0 deletions
diff --git a/include/trutils.h b/include/trutils.h new file mode 100644 index 0000000..5a9fb40 --- /dev/null +++ b/include/trutils.h | |||
| @@ -0,0 +1,90 @@ | |||
| 1 | /* | ||
| 2 | * Tiny RADIUS Client Library | ||
| 3 | * Copyright (C) 2022 David M. Syzdek <david@syzdek.net>. | ||
| 4 | * All rights reserved. | ||
| 5 | * | ||
| 6 | * Redistribution and use in source and binary forms, with or without | ||
| 7 | * modification, are permitted provided that the following conditions are | ||
| 8 | * met: | ||
| 9 | * | ||
| 10 | * * Redistributions of source code must retain the above copyright | ||
| 11 | * notice, this list of conditions and the following disclaimer. | ||
| 12 | * * Redistributions in binary form must reproduce the above copyright | ||
| 13 | * notice, this list of conditions and the following disclaimer in the | ||
| 14 | * documentation and/or other materials provided with the distribution. | ||
| 15 | * * Neither the name of David M. Syzdek nor the | ||
| 16 | * names of its contributors may be used to endorse or promote products | ||
| 17 | * derived from this software without specific prior written permission. | ||
| 18 | * | ||
| 19 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 20 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 21 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 22 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M. SYZDEK BE LIABLE FOR | ||
| 23 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 24 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 25 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| 26 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 27 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 28 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 29 | * SUCH DAMAGE. | ||
| 30 | */ | ||
| 31 | #ifndef __TRUTILS_H | ||
| 32 | #define __TRUTILS_H 1 | ||
| 33 | |||
| 34 | |||
| 35 | /////////////// | ||
| 36 | // // | ||
| 37 | // Headers // | ||
| 38 | // // | ||
| 39 | /////////////// | ||
| 40 | #pragma mark - Headers | ||
| 41 | |||
| 42 | #include <stddef.h> | ||
| 43 | #include <inttypes.h> | ||
| 44 | #include <sys/types.h> | ||
| 45 | |||
| 46 | #include <tinyrad.h> | ||
| 47 | |||
| 48 | |||
| 49 | ////////////// | ||
| 50 | // // | ||
| 51 | // Macros // | ||
| 52 | // // | ||
| 53 | ////////////// | ||
| 54 | #pragma mark - Macros | ||
| 55 | |||
| 56 | |||
| 57 | /////////////////// | ||
| 58 | // // | ||
| 59 | // Definitions // | ||
| 60 | // // | ||
| 61 | /////////////////// | ||
| 62 | #pragma mark - Definitions | ||
| 63 | |||
| 64 | |||
| 65 | ////////////////// | ||
| 66 | // // | ||
| 67 | // Data Types // | ||
| 68 | // // | ||
| 69 | ////////////////// | ||
| 70 | #pragma mark - Data Types | ||
| 71 | |||
| 72 | |||
| 73 | ////////////////// | ||
| 74 | // // | ||
| 75 | // Prototypes // | ||
| 76 | // // | ||
| 77 | ////////////////// | ||
| 78 | #pragma mark - Prototypes | ||
| 79 | |||
| 80 | //--------------------// | ||
| 81 | // verbose prototypes // | ||
| 82 | //--------------------// | ||
| 83 | #pragma mark verbose prototypes | ||
| 84 | |||
| 85 | _TINYRAD_F void | ||
| 86 | trutils_version( | ||
| 87 | const char * prog_name ); | ||
| 88 | |||
| 89 | |||
| 90 | #endif /* end of header */ | ||
