s3:registry: add regsubkey_ctr_get_seqnum() to hide implementation
authorMichael Adam <obnox@samba.org>
Tue, 24 Feb 2009 22:15:55 +0000 (23:15 +0100)
committerMichael Adam <obnox@samba.org>
Thu, 26 Feb 2009 12:24:07 +0000 (13:24 +0100)
Michael

source/registry/reg_objects.c

index 20bc906cfe7fc658afd897b6f68075dc6620b33a..f97ca69139d1f7541906a2e6c9a57bb194a86445 100644 (file)
@@ -61,6 +61,15 @@ WERROR regsubkey_ctr_set_seqnum(struct regsubkey_ctr *ctr, int seqnum)
        return WERR_OK;
 }
 
+int regsubkey_ctr_get_seqnum(struct regsubkey_ctr *ctr)
+{
+       if (ctr == NULL) {
+               return -1;
+       }
+
+       return ctr->seqnum;
+}
+
 /***********************************************************************
  Add a new key to the array
  **********************************************************************/