From 29c03e205521f5e64699519add64b9d1e3ecc843 Mon Sep 17 00:00:00 2001 From: Miro Jurisic Date: Tue, 7 Sep 1999 17:28:35 +0000 Subject: [PATCH] Added git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@11784 dc483132-0cff-0310-8789-dd5450dbe970 --- src/mac/ComErrLib.glue.h | 6 ++++++ src/mac/ComErrLib.glue.post.cin | 7 +++++++ src/mac/ComErrLib.glue.pre.cin | 5 +++++ src/mac/ComErrLib.glue.proto.h | 3 +++ src/mac/KrbProfileLib.glue.h | 6 ++++++ src/mac/KrbProfileLib.glue.post.cin | 7 +++++++ src/mac/KrbProfileLib.glue.pre.cin | 5 +++++ src/mac/KrbProfileLib.glue.proto.h | 18 ++++++++++++++++++ 8 files changed, 57 insertions(+) create mode 100644 src/mac/ComErrLib.glue.h create mode 100644 src/mac/ComErrLib.glue.post.cin create mode 100644 src/mac/ComErrLib.glue.pre.cin create mode 100644 src/mac/ComErrLib.glue.proto.h create mode 100644 src/mac/KrbProfileLib.glue.h create mode 100644 src/mac/KrbProfileLib.glue.post.cin create mode 100644 src/mac/KrbProfileLib.glue.pre.cin create mode 100644 src/mac/KrbProfileLib.glue.proto.h diff --git a/src/mac/ComErrLib.glue.h b/src/mac/ComErrLib.glue.h new file mode 100644 index 000000000..deb4aeb63 --- /dev/null +++ b/src/mac/ComErrLib.glue.h @@ -0,0 +1,6 @@ +#ifndef _COMERR_CFMGLUE_H_ +#define _COMERR_CFMGLUE_H_ + +Boolean ComErrLibraryIsPresent (); + +#endif /* _KERBEROSPROFILE_CFMGLUE_H_ */ \ No newline at end of file diff --git a/src/mac/ComErrLib.glue.post.cin b/src/mac/ComErrLib.glue.post.cin new file mode 100644 index 000000000..495af6b19 --- /dev/null +++ b/src/mac/ComErrLib.glue.post.cin @@ -0,0 +1,7 @@ +#include + +Boolean ComErrLibraryIsPresent () +{ + Ptr symAddr; + return (Find_Symbol (&symAddr, "\perror_message", error_message_ProcInfo)) == noErr; +} \ No newline at end of file diff --git a/src/mac/ComErrLib.glue.pre.cin b/src/mac/ComErrLib.glue.pre.cin new file mode 100644 index 000000000..e46153300 --- /dev/null +++ b/src/mac/ComErrLib.glue.pre.cin @@ -0,0 +1,5 @@ +/* Include prototypes for glue functions */ +#include + +/* Hardcode library fragment name here */ +#define kLibraryName "\pMIT KerberosĀ„ComErrLib" diff --git a/src/mac/ComErrLib.glue.proto.h b/src/mac/ComErrLib.glue.proto.h new file mode 100644 index 000000000..a07998465 --- /dev/null +++ b/src/mac/ComErrLib.glue.proto.h @@ -0,0 +1,3 @@ +const char* error_message(errcode_t); +errcode_t add_error_table (const struct error_table *); +errcode_t remove_error_table(const struct error_table *); diff --git a/src/mac/KrbProfileLib.glue.h b/src/mac/KrbProfileLib.glue.h new file mode 100644 index 000000000..05748eea5 --- /dev/null +++ b/src/mac/KrbProfileLib.glue.h @@ -0,0 +1,6 @@ +#ifndef _KERBEROSPROFILE_CFMGLUE_H_ +#define _KERBEROSPROFILE_CFMGLUE_H_ + +Boolean KerberosProfileLibraryIsPresent (); + +#endif /* _KERBEROSPROFILE_CFMGLUE_H_ */ \ No newline at end of file diff --git a/src/mac/KrbProfileLib.glue.post.cin b/src/mac/KrbProfileLib.glue.post.cin new file mode 100644 index 000000000..bc3bf9af4 --- /dev/null +++ b/src/mac/KrbProfileLib.glue.post.cin @@ -0,0 +1,7 @@ +#include + +Boolean KerberosProfileLibraryIsPresent () +{ + Ptr symAddr; + return (Find_Symbol (&symAddr, "\pprofile_init", profile_init_ProcInfo)) == noErr; +} \ No newline at end of file diff --git a/src/mac/KrbProfileLib.glue.pre.cin b/src/mac/KrbProfileLib.glue.pre.cin new file mode 100644 index 000000000..37b20e8de --- /dev/null +++ b/src/mac/KrbProfileLib.glue.pre.cin @@ -0,0 +1,5 @@ +/* Include prototypes for glue functions */ +#include + +/* Hardcode library fragment name here */ +#define kLibraryName "\pMIT KerberosĀ„KerberosProfileLib" diff --git a/src/mac/KrbProfileLib.glue.proto.h b/src/mac/KrbProfileLib.glue.proto.h new file mode 100644 index 000000000..80e33370d --- /dev/null +++ b/src/mac/KrbProfileLib.glue.proto.h @@ -0,0 +1,18 @@ +long profile_init (profile_filespec_t *files, profile_t *ret_profile); +long profile_init_path (profile_filespec_list_t filelist, profile_t *ret_profile); +long profile_flush (profile_t profile); +void profile_abandon (profile_t profile); +void profile_release (profile_t profile); +long profile_get_values (profile_t profile, const char **names, char ***ret_values); +void profile_free_list (char **list); +long profile_get_string (profile_t profile, const char *name, const char *subname, const char *subsubname, const char *def_val, char **ret_string); long profile_get_integer (profile_t profile, const char *name, const char *subname, const char *subsubname, int def_val, int *ret_default); +long profile_get_relation_names (profile_t profile, const char **names, char ***ret_names); +long profile_get_subsection_names (profile_t profile, const char **names, char ***ret_names); +long profile_iterator_create (profile_t profile, const char **names, int flags, void **ret_iter); +void profile_iterator_free (void **iter_p); +long profile_iterator (void **iter_p, char **ret_name, char **ret_value); +void profile_release_string (char *str); +long profile_update_relation (profile_t profile, const char **names, const char *old_value, const char *new_value); +long profile_clear_relation (profile_t profile, const char **names); +long profile_rename_section (profile_t profile, const char **names, const char *new_name); +long profile_add_relation (profile_t profile, const char **names, const char *new_value); -- 2.26.2