s3-secdesc: remove "typedef struct security_descriptor SEC_DESC".
[idra/samba.git] / source3 / include / regfio.h
index ee278a642753c02bcff627e4a61f29728a12bf64..840fbcd89a5fe13eb381ca8042592090368012d8 100644 (file)
@@ -14,8 +14,7 @@
  * GNU General Public License for more details.
  *
  * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
  */
 
 /************************************************************
@@ -28,6 +27,8 @@
 #ifndef _REGFIO_H
 #define _REGFIO_H
 
+struct regsubkey_ctr;
+
 /* Macros */
  
 #define REGF_BLOCKSIZE         0x1000
@@ -72,7 +73,7 @@ typedef struct regf_hbin {
 
        prs_struct ps;                  /* data */
 
-       BOOL dirty;                     /* has this hbin block been modified? */
+       bool dirty;                     /* has this hbin block been modified? */
 } REGF_HBIN;
 
 /* ??? List -- list of key offsets and hashed names for consistency */
@@ -128,7 +129,7 @@ typedef struct _regf_sk_rec {
        uint32 next_sk_off;
        uint32 ref_count;
        uint32 size;
-       SEC_DESC *sec_desc;
+       struct security_descriptor *sec_desc;
 } REGF_SK_REC;
 
 /* Key Name */ 
@@ -215,8 +216,8 @@ int           regfio_close( REGF_FILE *r );
 REGF_NK_REC*  regfio_rootkey( REGF_FILE *file );
 REGF_NK_REC*  regfio_fetch_subkey( REGF_FILE *file, REGF_NK_REC *nk );
 REGF_NK_REC*  regfio_write_key ( REGF_FILE *file, const char *name,
-                                 REGVAL_CTR *values, REGSUBKEY_CTR *subkeys,
-                                 SEC_DESC *sec_desc, REGF_NK_REC *parent );
+                                 struct regval_ctr *values, struct regsubkey_ctr *subkeys,
+                                 struct security_descriptor *sec_desc, REGF_NK_REC *parent );
 
 
 #endif /* _REGFIO_H */