about summary refs log tree commit diff
path: root/nis/nis_intern.h
diff options
context:
space:
mode:
Diffstat (limited to 'nis/nis_intern.h')
-rw-r--r--nis/nis_intern.h21
1 files changed, 19 insertions, 2 deletions
diff --git a/nis/nis_intern.h b/nis/nis_intern.h
index e714621f1b..22b753d246 100644
--- a/nis/nis_intern.h
+++ b/nis/nis_intern.h
@@ -1,4 +1,4 @@
-/* Copyright (c) 1997 Free Software Foundation, Inc.
+/* Copyright (c) 1997, 1998 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
    Contributed by Thorsten Kukuk <kukuk@vt.uni-paderborn.de>, 1997.
 
@@ -32,6 +32,7 @@ struct dir_binding
   u_int server_used;             /* Which server we are bind in the moment ? */
   u_int current_ep;              /* Which endpoint of the server are in use? */
   u_int trys;                    /* How many server have we tried ? */
+  u_int class;                   /* From which class is server_val ? */
   bool_t master_only;            /* Is only binded to the master */
   bool_t use_auth;               /* Do we use AUTH ? */
   bool_t use_udp;                /* Do we use UDP ? */
@@ -42,6 +43,14 @@ struct dir_binding
 };
 typedef struct dir_binding dir_binding;
 
+struct cache2_info
+{
+  long server_used;
+  long current_ep;
+  long class;
+};
+typedef struct cache2_info cache2_info;
+
 struct nis_cb
   {
     nis_server *serv;
@@ -59,7 +68,8 @@ extern long __nis_findfastest __P ((dir_binding *bind));
 extern nis_error __do_niscall2 __P ((const nis_server *serv, u_int serv_len,
 				     u_long prog, xdrproc_t xargs, caddr_t req,
 				     xdrproc_t xres, caddr_t resp,
-				     u_long flags, nis_cb *cb));
+				     u_long flags, nis_cb *cb,
+				     cache2_info *cinfo));
 extern nis_error __do_niscall __P ((const_nis_name name, u_long prog,
 				    xdrproc_t xargs, caddr_t req,
 				    xdrproc_t xres, caddr_t resp,
@@ -75,6 +85,13 @@ extern struct nis_cb *__nis_create_callback
 	    const void *userdata, u_long flags));
 extern nis_error __nis_destroy_callback __P ((struct nis_cb *cb));
 
+#ifdef _LIBC
+/* NIS+ Cache functions */
+extern directory_obj *__nis_cache_search __P ((const_nis_name name,
+					       u_long flags,
+					       cache2_info *cinfo));
+#endif
+
 __END_DECLS
 
 #endif