Share RPC binding string utility functions.
[samba.git] / source3 / librpc / gen_ndr / srv_winreg.c
index c697f44d2a3cebda803d50b1b7c4d87c4acfb6bf..3b7e195e3bd2de3f77b4780dacfe1959e36b2714 100644 (file)
@@ -27,7 +27,7 @@ static bool api_winreg_OpenHKCR(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -63,7 +63,7 @@ static bool api_winreg_OpenHKCR(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCR, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -107,7 +107,7 @@ static bool api_winreg_OpenHKCU(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -143,7 +143,7 @@ static bool api_winreg_OpenHKCU(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCU, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -187,7 +187,7 @@ static bool api_winreg_OpenHKLM(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -223,7 +223,7 @@ static bool api_winreg_OpenHKLM(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKLM, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -267,7 +267,7 @@ static bool api_winreg_OpenHKPD(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -303,7 +303,7 @@ static bool api_winreg_OpenHKPD(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPD, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -347,7 +347,7 @@ static bool api_winreg_OpenHKU(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -383,7 +383,7 @@ static bool api_winreg_OpenHKU(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKU, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -427,7 +427,7 @@ static bool api_winreg_CloseKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -458,7 +458,7 @@ static bool api_winreg_CloseKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_CloseKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -502,7 +502,7 @@ static bool api_winreg_CreateKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -539,7 +539,7 @@ static bool api_winreg_CreateKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_CreateKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -583,7 +583,7 @@ static bool api_winreg_DeleteKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -612,7 +612,7 @@ static bool api_winreg_DeleteKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_DeleteKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -656,7 +656,7 @@ static bool api_winreg_DeleteValue(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -685,7 +685,7 @@ static bool api_winreg_DeleteValue(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_DeleteValue, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -729,7 +729,7 @@ static bool api_winreg_EnumKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -762,7 +762,7 @@ static bool api_winreg_EnumKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_EnumKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -806,7 +806,7 @@ static bool api_winreg_EnumValue(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -841,7 +841,7 @@ static bool api_winreg_EnumValue(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_EnumValue, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -885,7 +885,7 @@ static bool api_winreg_FlushKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -914,7 +914,7 @@ static bool api_winreg_FlushKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_FlushKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -958,7 +958,7 @@ static bool api_winreg_GetKeySecurity(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -989,7 +989,7 @@ static bool api_winreg_GetKeySecurity(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_GetKeySecurity, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1033,7 +1033,7 @@ static bool api_winreg_LoadKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1062,7 +1062,7 @@ static bool api_winreg_LoadKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_LoadKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1106,7 +1106,7 @@ static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1135,7 +1135,7 @@ static bool api_winreg_NotifyChangeKeyValue(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_NotifyChangeKeyValue, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1179,7 +1179,7 @@ static bool api_winreg_OpenKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1215,7 +1215,7 @@ static bool api_winreg_OpenKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1259,7 +1259,7 @@ static bool api_winreg_QueryInfoKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1338,7 +1338,7 @@ static bool api_winreg_QueryInfoKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_QueryInfoKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1382,7 +1382,7 @@ static bool api_winreg_QueryValue(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1416,7 +1416,7 @@ static bool api_winreg_QueryValue(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_QueryValue, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1460,7 +1460,7 @@ static bool api_winreg_ReplaceKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1489,7 +1489,7 @@ static bool api_winreg_ReplaceKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_ReplaceKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1533,7 +1533,7 @@ static bool api_winreg_RestoreKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1562,7 +1562,7 @@ static bool api_winreg_RestoreKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_RestoreKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1606,7 +1606,7 @@ static bool api_winreg_SaveKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1635,7 +1635,7 @@ static bool api_winreg_SaveKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_SaveKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1679,7 +1679,7 @@ static bool api_winreg_SetKeySecurity(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1708,7 +1708,7 @@ static bool api_winreg_SetKeySecurity(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_SetKeySecurity, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1752,7 +1752,7 @@ static bool api_winreg_SetValue(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1781,7 +1781,7 @@ static bool api_winreg_SetValue(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_SetValue, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1825,7 +1825,7 @@ static bool api_winreg_UnLoadKey(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1854,7 +1854,7 @@ static bool api_winreg_UnLoadKey(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_UnLoadKey, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1898,7 +1898,7 @@ static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -1927,7 +1927,7 @@ static bool api_winreg_InitiateSystemShutdown(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdown, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -1971,7 +1971,7 @@ static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2000,7 +2000,7 @@ static bool api_winreg_AbortSystemShutdown(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_AbortSystemShutdown, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2044,7 +2044,7 @@ static bool api_winreg_GetVersion(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2080,7 +2080,7 @@ static bool api_winreg_GetVersion(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_GetVersion, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2124,7 +2124,7 @@ static bool api_winreg_OpenHKCC(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2160,7 +2160,7 @@ static bool api_winreg_OpenHKCC(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKCC, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2204,7 +2204,7 @@ static bool api_winreg_OpenHKDD(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2240,7 +2240,7 @@ static bool api_winreg_OpenHKDD(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKDD, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2284,7 +2284,7 @@ static bool api_winreg_QueryMultipleValues(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2317,7 +2317,7 @@ static bool api_winreg_QueryMultipleValues(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2361,7 +2361,7 @@ static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2390,7 +2390,7 @@ static bool api_winreg_InitiateSystemShutdownEx(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_InitiateSystemShutdownEx, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2434,7 +2434,7 @@ static bool api_winreg_SaveKeyEx(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2463,7 +2463,7 @@ static bool api_winreg_SaveKeyEx(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_SaveKeyEx, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2507,7 +2507,7 @@ static bool api_winreg_OpenHKPT(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2543,7 +2543,7 @@ static bool api_winreg_OpenHKPT(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPT, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2587,7 +2587,7 @@ static bool api_winreg_OpenHKPN(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2623,7 +2623,7 @@ static bool api_winreg_OpenHKPN(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_OpenHKPN, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;
@@ -2667,7 +2667,7 @@ static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
                return false;
        }
 
-       pull = ndr_pull_init_blob(&blob, r);
+       pull = ndr_pull_init_blob(&blob, r, NULL);
        if (pull == NULL) {
                talloc_free(r);
                return false;
@@ -2696,7 +2696,7 @@ static bool api_winreg_QueryMultipleValues2(pipes_struct *p)
                NDR_PRINT_OUT_DEBUG(winreg_QueryMultipleValues2, r);
        }
 
-       push = ndr_push_init_ctx(r);
+       push = ndr_push_init_ctx(r, NULL);
        if (push == NULL) {
                talloc_free(r);
                return false;