clean up the rcache ops functions
authorJohn Kohl <jtkohl@mit.edu>
Mon, 12 Feb 1990 10:53:26 +0000 (10:53 +0000)
committerJohn Kohl <jtkohl@mit.edu>
Mon, 12 Feb 1990 10:53:26 +0000 (10:53 +0000)
to return krb5_error_code, and to take sensible arguments

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@344 dc483132-0cff-0310-8789-dd5450dbe970

src/include/krb5/rcache.h

index 0c8c61eb6d184fdc889ff53ed05db057cc6a1c0a..7963a9204229a45bf712e5cdd05c061a1120960c 100644 (file)
@@ -23,25 +23,21 @@ typedef struct krb5_rc_st {
 
 typedef struct _krb5_rc_ops {
        char *prefix;
-       int (*resolve) PROTOTYPE((krb5_rcache *,
-                                 char *));
-       int (*new) PROTOTYPE((krb5_rcache *,
-                             struct _krb5_rc_ops *));
-       char *(*get_name) PROTOTYPE((krb5_rcache));
-       int (*init) PROTOTYPE((krb5_rcache,
-                              krb5_timestamp));
-       int (*recover) PROTOTYPE((krb5_rcache));
-       int (*destroy) PROTOTYPE((krb5_rcache));
-       int (*close) PROTOTYPE((krb5_rcache));
-       int (*store) PROTOTYPE((krb5_rcache,
-                               krb5_tkt_authent *,
-                               krb5_boolean));
-       int (*search) PROTOTYPE((krb5_rcache,
-                                krb5_tkt_authent *));
-       int (*get_span) PROTOTYPE((krb5_rcache));
-       int (*remove_cred) PROTOTYPE((krb5_rcache,
-                                     krb5_tkt_authent *));
-       int (*expunge) PROTOTYPE((krb5_rcache));
+       krb5_error_code (*resolve) PROTOTYPE((krb5_rcache *,
+                                             char *));
+       krb5_error_code (*new) PROTOTYPE((krb5_rcache *,
+                                         struct _krb5_rc_ops *));
+       krb5_error_code (*get_name) PROTOTYPE((krb5_rcache, char *, int));
+       krb5_error_code (*init) PROTOTYPE((krb5_rcache,
+                                          krb5_deltat));
+       krb5_error_code (*recover) PROTOTYPE((krb5_rcache));
+       krb5_error_code (*destroy) PROTOTYPE((krb5_rcache));
+       krb5_error_code (*close) PROTOTYPE((krb5_rcache));
+       krb5_error_code (*store) PROTOTYPE((krb5_rcache,
+                                           krb5_tkt_authent *,
+                                           krb5_boolean));
+       krb5_error_code (*get_span) PROTOTYPE((krb5_rcache, krb5_deltat *));
+       krb5_error_code (*expunge) PROTOTYPE((krb5_rcache));
 } krb5_rc_ops;