summaryrefslogtreecommitdiff
path: root/librpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2010-04-30 13:35:41 +0200
committerGünther Deschner <gd@samba.org>2010-04-30 13:44:41 +0200
commit3bfceafed7ad33d7bdf4cf9391f71b57dbe54220 (patch)
treec138b48ce84b9fe9c9d40c2dade447b23292bcbd /librpc
parent7cdd6a15afb58b05f524ec859776ee02a41cf582 (diff)
downloadsamba-3bfceafed7ad33d7bdf4cf9391f71b57dbe54220.tar.gz
samba-3bfceafed7ad33d7bdf4cf9391f71b57dbe54220.tar.bz2
samba-3bfceafed7ad33d7bdf4cf9391f71b57dbe54220.zip
rap: add rap_status to IDL.
Guenther
Diffstat (limited to 'librpc')
-rw-r--r--librpc/idl/rap.idl4
-rw-r--r--librpc/ndr/ndr_rap.c4
-rw-r--r--librpc/ndr/ndr_rap.h1
3 files changed, 9 insertions, 0 deletions
diff --git a/librpc/idl/rap.idl b/librpc/idl/rap.idl
index 52cd192881..51ada13564 100644
--- a/librpc/idl/rap.idl
+++ b/librpc/idl/rap.idl
@@ -10,6 +10,10 @@
]
interface rap
{
+ typedef [public,noprint] enum {
+ NERR_Success = 0
+ } rap_status;
+
const int RAP_WshareEnum = 0;
const int RAP_WshareGetInfo = 1;
const int RAP_WshareSetInfo = 2;
diff --git a/librpc/ndr/ndr_rap.c b/librpc/ndr/ndr_rap.c
index f21e3675b6..ea18a08865 100644
--- a/librpc/ndr/ndr_rap.c
+++ b/librpc/ndr/ndr_rap.c
@@ -22,3 +22,7 @@
#include "includes.h"
#include "librpc/gen_ndr/ndr_rap.h"
+_PUBLIC_ void ndr_print_rap_status(struct ndr_print *ndr, const char *name, enum rap_status r)
+{
+ ndr_print_WERROR(ndr, name, W_ERROR(r));
+}
diff --git a/librpc/ndr/ndr_rap.h b/librpc/ndr/ndr_rap.h
index 0a18e8cdb7..35a03b16cf 100644
--- a/librpc/ndr/ndr_rap.h
+++ b/librpc/ndr/ndr_rap.h
@@ -19,3 +19,4 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
+_PUBLIC_ void ndr_print_rap_status(struct ndr_print *ndr, const char *name, enum rap_status r);