r8614: Add COMRESULT/HRESULT scalar type
authorJelmer Vernooij <jelmer@samba.org>
Tue, 19 Jul 2005 19:21:40 +0000 (19:21 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:29:44 +0000 (13:29 -0500)
source/build/pidl/Parse/Pidl/Typelist.pm
source/librpc/idl/orpc.idl
source/librpc/ndr/ndr_orpc.h

index 60b6e7905b51bcb3b7cb4c035acf44c67a153f7b..ab5df0fc52ce6d711b2f2b81d385ea7f2038a182 100644 (file)
@@ -137,6 +137,11 @@ my $scalars = {
                                IS_REFERENCE    => 0,
                                NDR_ALIGN       => 4
                        },
+       "COMRESULT" => { 
+                               "C_TYPE"        => "COMRESULT",
+                               IS_REFERENCE => 0,
+                               NDR_ALIGN => 4
+                       },
 
        # special types
        "nbt_string"    => {
@@ -244,7 +249,8 @@ my $aliases = {
        "char" => "uint8",
        "long" => "int32",
        "short" => "int16",
-       "HYPER_T" => "hyper"
+       "HYPER_T" => "hyper",
+       "HRESULT" => "COMRESULT",
 };
 
 sub RegisterAliases()
index 1934a3cbed7f4076b36a0832ed44365830940ba2..377f71b34f35a294289a60ba3dc72c87b289e74c 100644 (file)
@@ -200,4 +200,18 @@ interface ObjectRpcBaseTypes
                uint32 size;
                [subcontext(4)] OBJREF obj;
        } MInterfacePointer;
+
+       typedef [v1_enum,public] enum 
+       {
+               COM_OK                          = 0x00000000,
+               COM_OUTOFMEMORY         = 0x80000002,
+               COM_INVALIDARG          = 0x80000003,
+               COM_NOINTERFACE         = 0x80000004,
+               COM_ACCESSDENIED        = 0x80000005,
+               COM_INVALID_OXID        = 0x80070776,
+               COM_INVALID_OID         = 0x80070777,
+               COM_INVALID_SET         = 0x80070778,
+               COM_UNEXPECTED          = 0x8000FFFF,
+               COM_CLSNOTFOUND         = 0x80040154
+       } COMRESULT;
 }
index d1817969a48287bdaf75c0d7b157f63fc3142b96..ab91432aecdb8ae573403e909df087c9d1b93773 100644 (file)
@@ -23,6 +23,8 @@
 #ifndef __NDR_ORPC_H__
 #define __NDR_ORPC_H__
 
+typedef enum COMRESULT COMRESULT;
+
 struct STRINGARRAY
 {
        struct STRINGBINDING **stringbindings;