]> git.saurik.com Git - apple/mdnsresponder.git/blob - ServiceRegistration/srp.h
mDNSResponder-1096.0.2.tar.gz
[apple/mdnsresponder.git] / ServiceRegistration / srp.h
1 /* srp.h
2 *
3 * Copyright (c) 2018 Apple Computer, Inc. All rights reserved.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
16 *
17 * Service Registration Protocol common definitions
18 */
19
20 #ifndef __SRP_H
21 #define __SRP_H
22
23 #include <stdint.h>
24 #include <stdbool.h>
25
26 #ifdef __clang__
27 #define NULLABLE _Nullable
28 #define NONNULL _Nonnull
29 #else
30 #define NULLABLE
31 #define NONNULL
32 #endif
33
34 #define ERROR(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
35 #define INFO(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
36 #define DEBUG(fmt, ...) fprintf(stderr, fmt "\n", ##__VA_ARGS__)
37
38 typedef struct srp_key srp_key_t;
39 #endif
40
41 // Local Variables:
42 // mode: C
43 // tab-width: 4
44 // c-file-style: "bsd"
45 // c-basic-offset: 4
46 // fill-column: 108
47 // indent-tabs-mode: nil
48 // End: