diff options
| author | David M. Syzdek <david@syzdek.net> | 2023-01-10 01:07:46 -0900 |
|---|---|---|
| committer | David M. Syzdek <david@syzdek.net> | 2023-01-10 01:07:46 -0900 |
| commit | 64e8293df4b5b0a3185db52ad05a1744adaad2fe (patch) | |
| tree | 98e4b56f83a6089a0151fd06b57c4211612b11b5 | |
| parent | ec5b48dc248a306c7f3dd67facb932eeb83a0e80 (diff) | |
| download | otputils-64e8293df4b5b0a3185db52ad05a1744adaad2fe.tar.gz otputils-64e8293df4b5b0a3185db52ad05a1744adaad2fe.tar.bz2 otputils-64e8293df4b5b0a3185db52ad05a1744adaad2fe.tar.xz otputils-64e8293df4b5b0a3185db52ad05a1744adaad2fe.zip | |
libotputil: moving core functions to lcore.c
| -rw-r--r-- | Makefile.am | 3 | ||||
| -rw-r--r-- | lib/libotputil/lcore.c (renamed from lib/libotputil/libotputil.c) | 16 | ||||
| -rw-r--r-- | lib/libotputil/lcore.h | 47 |
3 files changed, 53 insertions, 13 deletions
diff --git a/Makefile.am b/Makefile.am index 0311d85..2a8ccc7 100644 --- a/Makefile.am +++ b/Makefile.am | |||
| @@ -171,9 +171,10 @@ lib_libotputil_a_CPPFLAGS = $(AM_CPPFLAGS) -I$(srcdir)/lib/libotputil | |||
| 171 | lib_libotputil_a_SOURCES = $(noinst_HEADERS) \ | 171 | lib_libotputil_a_SOURCES = $(noinst_HEADERS) \ |
| 172 | $(BINDLE_LIBBINDLE_SRCS) \ | 172 | $(BINDLE_LIBBINDLE_SRCS) \ |
| 173 | lib/libotputil/libotputil.h \ | 173 | lib/libotputil/libotputil.h \ |
| 174 | lib/libotputil/libotputil.c \ | ||
| 175 | lib/libotputil/lbv.c \ | 174 | lib/libotputil/lbv.c \ |
| 176 | lib/libotputil/lbv.h \ | 175 | lib/libotputil/lbv.h \ |
| 176 | lib/libotputil/lcore.c \ | ||
| 177 | lib/libotputil/lcore.h \ | ||
| 177 | lib/libotputil/lhotp.c \ | 178 | lib/libotputil/lhotp.c \ |
| 178 | lib/libotputil/lhotp.h \ | 179 | lib/libotputil/lhotp.h \ |
| 179 | lib/libotputil/lmisc.c \ | 180 | lib/libotputil/lmisc.c \ |
diff --git a/lib/libotputil/libotputil.c b/lib/libotputil/lcore.c index 5a90066..17f8b95 100644 --- a/lib/libotputil/libotputil.c +++ b/lib/libotputil/lcore.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* | 1 | /* |
| 2 | * OTP Utilities | 2 | * OTP Utilities |
| 3 | * Copyright (C) 2020 David M. Syzdek <david@syzdek.net>. | 3 | * Copyright (C) 2022 David M. Syzdek <david@syzdek.net>. |
| 4 | * | 4 | * |
| 5 | * Redistribution and use in source and binary forms, with or without | 5 | * Redistribution and use in source and binary forms, with or without |
| 6 | * modification, are permitted provided that the following conditions are | 6 | * modification, are permitted provided that the following conditions are |
| @@ -28,10 +28,10 @@ | |||
| 28 | * SUCH DAMAGE. | 28 | * SUCH DAMAGE. |
| 29 | */ | 29 | */ |
| 30 | /* | 30 | /* |
| 31 | * @file lib/libotputil/libotputil.c | 31 | * @file lib/libotputil/lcore.c |
| 32 | */ | 32 | */ |
| 33 | #define _LIB_LIBOTPUTIL_C 1 | 33 | #define _LIB_LIBOTPUTIL_LCORE_C 1 |
| 34 | #include "libotputil.h" | 34 | #include "lcore.h" |
| 35 | 35 | ||
| 36 | /////////////// | 36 | /////////////// |
| 37 | // // | 37 | // // |
| @@ -54,14 +54,6 @@ | |||
| 54 | #include "lhotp.h" | 54 | #include "lhotp.h" |
| 55 | 55 | ||
| 56 | 56 | ||
| 57 | ////////////////// | ||
| 58 | // // | ||
| 59 | // Prototypes // | ||
| 60 | // // | ||
| 61 | ////////////////// | ||
| 62 | #pragma mark - Prototypes | ||
| 63 | |||
| 64 | |||
| 65 | ///////////////// | 57 | ///////////////// |
| 66 | // // | 58 | // // |
| 67 | // Variables // | 59 | // Variables // |
diff --git a/lib/libotputil/lcore.h b/lib/libotputil/lcore.h new file mode 100644 index 0000000..e4b20f6 --- /dev/null +++ b/lib/libotputil/lcore.h | |||
| @@ -0,0 +1,47 @@ | |||
| 1 | /* | ||
| 2 | * OTP Utilities | ||
| 3 | * Copyright (C) 2022 David M. Syzdek <david@syzdek.net>. | ||
| 4 | * | ||
| 5 | * Redistribution and use in source and binary forms, with or without | ||
| 6 | * modification, are permitted provided that the following conditions are | ||
| 7 | * met: | ||
| 8 | * | ||
| 9 | * * Redistributions of source code must retain the above copyright | ||
| 10 | * notice, this list of conditions and the following disclaimer. | ||
| 11 | * * Redistributions in binary form must reproduce the above copyright | ||
| 12 | * notice, this list of conditions and the following disclaimer in the | ||
| 13 | * documentation and/or other materials provided with the distribution. | ||
| 14 | * * Neither the name of David M. Syzdek nor the | ||
| 15 | * names of its contributors may be used to endorse or promote products | ||
| 16 | * derived from this software without specific prior written permission. | ||
| 17 | * | ||
| 18 | * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS | ||
| 19 | * IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, | ||
| 20 | * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR | ||
| 21 | * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL DAVID M SYZDEK BE LIABLE FOR | ||
| 22 | * ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL | ||
| 23 | * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR | ||
| 24 | * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER | ||
| 25 | * CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT | ||
| 26 | * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY | ||
| 27 | * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF | ||
| 28 | * SUCH DAMAGE. | ||
| 29 | */ | ||
| 30 | /* | ||
| 31 | * @file lib/libotputil/lcore.h | ||
| 32 | */ | ||
| 33 | #ifndef _LIB_LIBOTPUTIL_LCORE_H | ||
| 34 | #define _LIB_LIBOTPUTIL_LCORE_H 1 | ||
| 35 | |||
| 36 | |||
| 37 | /////////////// | ||
| 38 | // // | ||
| 39 | // Headers // | ||
| 40 | // // | ||
| 41 | /////////////// | ||
| 42 | #pragma mark - Headers | ||
| 43 | |||
| 44 | #include "libotputil.h" | ||
| 45 | |||
| 46 | |||
| 47 | #endif /* end of header file */ | ||
