s3: Do not reference the ndr_tables in the server calls directly
[ira/wip.git] / librpc / gen_ndr / srv_eventlog.c
index 7404ba2a3ac860dcbd7d740876518a6bd93f2dde..9b53d33da1f11cea8d8dbb5b19ac519b69f3e25e 100644 (file)
@@ -15,7 +15,7 @@ static bool api_eventlog_ClearEventLogW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ClearEventLogW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLEAREVENTLOGW];
+       call = &p->interface->calls[NDR_EVENTLOG_CLEAREVENTLOGW];
 
        r = talloc(talloc_tos(), struct eventlog_ClearEventLogW);
        if (r == NULL) {
@@ -88,7 +88,7 @@ static bool api_eventlog_BackupEventLogW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_BackupEventLogW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_BACKUPEVENTLOGW];
+       call = &p->interface->calls[NDR_EVENTLOG_BACKUPEVENTLOGW];
 
        r = talloc(talloc_tos(), struct eventlog_BackupEventLogW);
        if (r == NULL) {
@@ -161,7 +161,7 @@ static bool api_eventlog_CloseEventLog(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_CloseEventLog *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLOSEEVENTLOG];
+       call = &p->interface->calls[NDR_EVENTLOG_CLOSEEVENTLOG];
 
        r = talloc(talloc_tos(), struct eventlog_CloseEventLog);
        if (r == NULL) {
@@ -236,7 +236,7 @@ static bool api_eventlog_DeregisterEventSource(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_DeregisterEventSource *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_DEREGISTEREVENTSOURCE];
+       call = &p->interface->calls[NDR_EVENTLOG_DEREGISTEREVENTSOURCE];
 
        r = talloc(talloc_tos(), struct eventlog_DeregisterEventSource);
        if (r == NULL) {
@@ -311,7 +311,7 @@ static bool api_eventlog_GetNumRecords(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_GetNumRecords *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETNUMRECORDS];
+       call = &p->interface->calls[NDR_EVENTLOG_GETNUMRECORDS];
 
        r = talloc(talloc_tos(), struct eventlog_GetNumRecords);
        if (r == NULL) {
@@ -391,7 +391,7 @@ static bool api_eventlog_GetOldestRecord(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_GetOldestRecord *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETOLDESTRECORD];
+       call = &p->interface->calls[NDR_EVENTLOG_GETOLDESTRECORD];
 
        r = talloc(talloc_tos(), struct eventlog_GetOldestRecord);
        if (r == NULL) {
@@ -471,7 +471,7 @@ static bool api_eventlog_ChangeNotify(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ChangeNotify *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CHANGENOTIFY];
+       call = &p->interface->calls[NDR_EVENTLOG_CHANGENOTIFY];
 
        r = talloc(talloc_tos(), struct eventlog_ChangeNotify);
        if (r == NULL) {
@@ -544,7 +544,7 @@ static bool api_eventlog_OpenEventLogW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_OpenEventLogW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENEVENTLOGW];
+       call = &p->interface->calls[NDR_EVENTLOG_OPENEVENTLOGW];
 
        r = talloc(talloc_tos(), struct eventlog_OpenEventLogW);
        if (r == NULL) {
@@ -624,7 +624,7 @@ static bool api_eventlog_RegisterEventSourceW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_RegisterEventSourceW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTEREVENTSOURCEW];
+       call = &p->interface->calls[NDR_EVENTLOG_REGISTEREVENTSOURCEW];
 
        r = talloc(talloc_tos(), struct eventlog_RegisterEventSourceW);
        if (r == NULL) {
@@ -704,7 +704,7 @@ static bool api_eventlog_OpenBackupEventLogW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_OpenBackupEventLogW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGW];
+       call = &p->interface->calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGW];
 
        r = talloc(talloc_tos(), struct eventlog_OpenBackupEventLogW);
        if (r == NULL) {
@@ -784,7 +784,7 @@ static bool api_eventlog_ReadEventLogW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ReadEventLogW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_READEVENTLOGW];
+       call = &p->interface->calls[NDR_EVENTLOG_READEVENTLOGW];
 
        r = talloc(talloc_tos(), struct eventlog_ReadEventLogW);
        if (r == NULL) {
@@ -876,7 +876,7 @@ static bool api_eventlog_ReportEventW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ReportEventW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REPORTEVENTW];
+       call = &p->interface->calls[NDR_EVENTLOG_REPORTEVENTW];
 
        r = talloc(talloc_tos(), struct eventlog_ReportEventW);
        if (r == NULL) {
@@ -952,7 +952,7 @@ static bool api_eventlog_ClearEventLogA(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ClearEventLogA *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_CLEAREVENTLOGA];
+       call = &p->interface->calls[NDR_EVENTLOG_CLEAREVENTLOGA];
 
        r = talloc(talloc_tos(), struct eventlog_ClearEventLogA);
        if (r == NULL) {
@@ -1025,7 +1025,7 @@ static bool api_eventlog_BackupEventLogA(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_BackupEventLogA *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_BACKUPEVENTLOGA];
+       call = &p->interface->calls[NDR_EVENTLOG_BACKUPEVENTLOGA];
 
        r = talloc(talloc_tos(), struct eventlog_BackupEventLogA);
        if (r == NULL) {
@@ -1098,7 +1098,7 @@ static bool api_eventlog_OpenEventLogA(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_OpenEventLogA *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENEVENTLOGA];
+       call = &p->interface->calls[NDR_EVENTLOG_OPENEVENTLOGA];
 
        r = talloc(talloc_tos(), struct eventlog_OpenEventLogA);
        if (r == NULL) {
@@ -1171,7 +1171,7 @@ static bool api_eventlog_RegisterEventSourceA(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_RegisterEventSourceA *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTEREVENTSOURCEA];
+       call = &p->interface->calls[NDR_EVENTLOG_REGISTEREVENTSOURCEA];
 
        r = talloc(talloc_tos(), struct eventlog_RegisterEventSourceA);
        if (r == NULL) {
@@ -1244,7 +1244,7 @@ static bool api_eventlog_OpenBackupEventLogA(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_OpenBackupEventLogA *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGA];
+       call = &p->interface->calls[NDR_EVENTLOG_OPENBACKUPEVENTLOGA];
 
        r = talloc(talloc_tos(), struct eventlog_OpenBackupEventLogA);
        if (r == NULL) {
@@ -1317,7 +1317,7 @@ static bool api_eventlog_ReadEventLogA(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ReadEventLogA *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_READEVENTLOGA];
+       call = &p->interface->calls[NDR_EVENTLOG_READEVENTLOGA];
 
        r = talloc(talloc_tos(), struct eventlog_ReadEventLogA);
        if (r == NULL) {
@@ -1390,7 +1390,7 @@ static bool api_eventlog_ReportEventA(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ReportEventA *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REPORTEVENTA];
+       call = &p->interface->calls[NDR_EVENTLOG_REPORTEVENTA];
 
        r = talloc(talloc_tos(), struct eventlog_ReportEventA);
        if (r == NULL) {
@@ -1463,7 +1463,7 @@ static bool api_eventlog_RegisterClusterSvc(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_RegisterClusterSvc *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REGISTERCLUSTERSVC];
+       call = &p->interface->calls[NDR_EVENTLOG_REGISTERCLUSTERSVC];
 
        r = talloc(talloc_tos(), struct eventlog_RegisterClusterSvc);
        if (r == NULL) {
@@ -1536,7 +1536,7 @@ static bool api_eventlog_DeregisterClusterSvc(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_DeregisterClusterSvc *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_DEREGISTERCLUSTERSVC];
+       call = &p->interface->calls[NDR_EVENTLOG_DEREGISTERCLUSTERSVC];
 
        r = talloc(talloc_tos(), struct eventlog_DeregisterClusterSvc);
        if (r == NULL) {
@@ -1609,7 +1609,7 @@ static bool api_eventlog_WriteClusterEvents(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_WriteClusterEvents *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_WRITECLUSTEREVENTS];
+       call = &p->interface->calls[NDR_EVENTLOG_WRITECLUSTEREVENTS];
 
        r = talloc(talloc_tos(), struct eventlog_WriteClusterEvents);
        if (r == NULL) {
@@ -1682,7 +1682,7 @@ static bool api_eventlog_GetLogInformation(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_GetLogInformation *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_GETLOGINFORMATION];
+       call = &p->interface->calls[NDR_EVENTLOG_GETLOGINFORMATION];
 
        r = talloc(talloc_tos(), struct eventlog_GetLogInformation);
        if (r == NULL) {
@@ -1768,7 +1768,7 @@ static bool api_eventlog_FlushEventLog(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_FlushEventLog *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_FLUSHEVENTLOG];
+       call = &p->interface->calls[NDR_EVENTLOG_FLUSHEVENTLOG];
 
        r = talloc(talloc_tos(), struct eventlog_FlushEventLog);
        if (r == NULL) {
@@ -1841,7 +1841,7 @@ static bool api_eventlog_ReportEventAndSourceW(pipes_struct *p)
        DATA_BLOB blob;
        struct eventlog_ReportEventAndSourceW *r;
 
-       call = &ndr_table_eventlog.calls[NDR_EVENTLOG_REPORTEVENTANDSOURCEW];
+       call = &p->interface->calls[NDR_EVENTLOG_REPORTEVENTANDSOURCEW];
 
        r = talloc(talloc_tos(), struct eventlog_ReportEventAndSourceW);
        if (r == NULL) {