Skip to content

Commit b5eb309

Browse files
committed
zcore: use more ec_error_t
1 parent b06bcc0 commit b5eb309

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

include/gromox/zcore_client.hpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,11 @@
1414
struct zcreq;
1515
struct zcresp;
1616
extern zend_bool zclient_do_rpc(const zcreq *, zcresp *);
17-
extern uint32_t zclient_setpropval(GUID hsession, uint32_t hobject, uint32_t proptag, const void *pvalue);
18-
extern uint32_t zclient_getpropval(GUID hsession, uint32_t hobject, uint32_t proptag, void **ppvalue);
17+
extern ec_error_t zclient_setpropval(GUID ses, uint32_t obj, gromox::proptag_t, const void *);
18+
extern ec_error_t zclient_getpropval(GUID ses, uint32_t obj, gromox::proptag_t, void **);
1919

2020
#define IDLOUT
21-
#define ZCIDL(n, p) extern uint32_t zclient_ ## n p;
21+
#define ZCIDL(n, p) extern ec_error_t zclient_ ## n p;
2222
/* When calling these functions, none of the IDLOUT parameters may be NULL */
2323
ZCIDL(logon, (const char *username, const char *password, const char *rhost, uint32_t flags, IDLOUT GUID *hsession))
2424
ZCIDL(uinfo, (const char *username, IDLOUT BINARY *entryid, char **pdisplay_name, char **px500dn, uint32_t *privilege_bits))

tools/zcidl.pl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/perl
22
# SPDX-License-Identifier: MIT
3+
# SPDX-FileCopyrightText: 2021–2025 grommunio GmbH
4+
# This file is part of Gromox.
35
use Getopt::Long;
46
use strict;
57
use warnings;
@@ -49,7 +51,7 @@
4951
next;
5052
}
5153

52-
print "uint32_t zclient_$func($rbsig)\n{\n";
54+
print "ec_error_t zclient_$func($rbsig)\n{\n";
5355
print "\tzcreq_$func q{};\n\tzcresp_$func r{};\n\n";
5456
print "\tq.call_id = zcore_callid::$func;\n";
5557
for (@$iargs) {

0 commit comments

Comments
 (0)