Print this page
4095 minor cleanup up libshare

@@ -23,10 +23,14 @@
  * Copyright 2009 Sun Microsystems, Inc.  All rights reserved.
  * Use is subject to license terms.
  */
 
 /*
+ * Copyright (c) 2013 RackTop Systems.
+ */
+
+/*
  * basic declarations for implementation of the share management
  * libraries.
  */
 
 #ifndef _LIBSHARE_IMPL_H

@@ -98,21 +102,21 @@
             void                *pl_void;
         }                       pl_value;
 } property_list_t;
 
 /* internal version of sa_handle_t */
-typedef struct sa_handle_impl {
+struct sa_handle {
         uint64_t        flags;
         scfutilhandle_t *scfhandle;
         libzfs_handle_t *zfs_libhandle;
         zfs_handle_t    **zfs_list;
         size_t          zfs_list_count;
         xmlNodePtr      tree;
         xmlDocPtr       doc;
         uint64_t        tssharetab;
         uint64_t        tstrans;
-} *sa_handle_impl_t;
+};
 
 extern int sa_proto_share(char *, sa_share_t);
 extern int sa_proto_unshare(sa_share_t, char *, char *);
 extern int sa_proto_valid_prop(sa_handle_t, char *, sa_property_t,
     sa_optionset_t);

@@ -127,11 +131,11 @@
 extern sa_optionset_t sa_get_all_security_types(void *, char *, int);
 extern sa_security_t sa_get_derived_security(void *, char *, char *, int);
 extern void sa_free_derived_security(sa_security_t);
 extern sa_protocol_properties_t sa_create_protocol_properties(char *);
 extern int sa_start_transaction(scfutilhandle_t *, char *);
-extern int sa_end_transaction(scfutilhandle_t *, sa_handle_impl_t);
+extern int sa_end_transaction(scfutilhandle_t *, sa_handle_t);
 extern void sa_abort_transaction(scfutilhandle_t *);
 extern int sa_commit_share(scfutilhandle_t *, sa_group_t, sa_share_t);
 extern int sa_set_property(scfutilhandle_t *, char *, char *);
 extern void sa_free_fstype(char *fstyp);
 extern int sa_delete_share(scfutilhandle_t *, sa_group_t, sa_share_t);