Skip to content

Commit

Permalink
Merge pull request #3 from magicinternet/export-all-functions
Browse files Browse the repository at this point in the history
Added export attribute to all the functions
  • Loading branch information
valentin-naboka authored Aug 30, 2022
2 parents 7221a89 + e2c2798 commit b989934
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 13 deletions.
16 changes: 8 additions & 8 deletions src/mappings.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,16 +52,16 @@ struct int_string_map

extern struct int_string_map const c_dns_rcode_enum[];

extern char const *dns_rcode_enum (dns_rcode_t) __attribute__ ((pure,nothrow));
extern char const *dns_rcode_text (dns_rcode_t) __attribute__ ((pure,nothrow));
extern char const *dns_type_text (dns_type_t) __attribute__ ((pure,nothrow));
extern char const *dns_class_text (dns_class_t) __attribute__ ((pure,nothrow));
extern char const *dns_op_text (dns_op_t) __attribute__ ((pure,nothrow));
WIN_DLL_EXPORT extern char const *dns_rcode_enum (dns_rcode_t) __attribute__ ((pure,nothrow));
WIN_DLL_EXPORT extern char const *dns_rcode_text (dns_rcode_t) __attribute__ ((pure,nothrow));
WIN_DLL_EXPORT extern char const *dns_type_text (dns_type_t) __attribute__ ((pure,nothrow));
WIN_DLL_EXPORT extern char const *dns_class_text (dns_class_t) __attribute__ ((pure,nothrow));
WIN_DLL_EXPORT extern char const *dns_op_text (dns_op_t) __attribute__ ((pure,nothrow));

extern dns_rcode_t dns_rcode_value (char const *) __attribute__ ((pure,nothrow,nonnull));
WIN_DLL_EXPORT extern dns_rcode_t dns_rcode_value (char const *) __attribute__ ((pure,nothrow,nonnull));
WIN_DLL_EXPORT extern dns_type_t dns_type_value (char const *) __attribute__ ((pure,nothrow,nonnull));
extern dns_class_t dns_class_value (char const *) __attribute__ ((pure,nothrow,nonnull));
extern dns_op_t dns_op_value (char const *) __attribute__ ((pure,nothrow,nonnull));
WIN_DLL_EXPORT extern dns_class_t dns_class_value (char const *) __attribute__ ((pure,nothrow,nonnull));
WIN_DLL_EXPORT extern dns_op_t dns_op_value (char const *) __attribute__ ((pure,nothrow,nonnull));

#ifdef __cplusplus
}
Expand Down
10 changes: 5 additions & 5 deletions src/output.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
#include <stdio.h>
#include "dns.h"

extern void dns_print_result (dns_query_t *);
extern void dns_print_header (dns_query_t *);
extern void dns_print_question (char const *,dns_question_t *,size_t);
extern void dns_print_answer (char const *,dns_answer_t *,size_t);
extern void dns_dump_memory (FILE *,void const *,size_t,size_t);
WIN_DLL_EXPORT extern void dns_print_result (dns_query_t *);
WIN_DLL_EXPORT extern void dns_print_header (dns_query_t *);
WIN_DLL_EXPORT extern void dns_print_question (char const *,dns_question_t *,size_t);
WIN_DLL_EXPORT extern void dns_print_answer (char const *,dns_answer_t *,size_t);
WIN_DLL_EXPORT extern void dns_dump_memory (FILE *,void const *,size_t,size_t);

#ifdef __cplusplus
}
Expand Down

0 comments on commit b989934

Please sign in to comment.