summaryrefslogtreecommitdiff
path: root/source3/libads
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-03-23 22:27:59 +0100
committerMichael Adam <obnox@samba.org>2009-04-27 11:21:03 +0200
commit8185d31fb0a4ef0219fe15f825a9340083f4c277 (patch)
treed60247d6e96077e171079748482cc353bdd7eb32 /source3/libads
parent221151a2a2c30e5c82b100161b498fdbbc1d4382 (diff)
downloadsamba-8185d31fb0a4ef0219fe15f825a9340083f4c277.tar.gz
samba-8185d31fb0a4ef0219fe15f825a9340083f4c277.tar.bz2
samba-8185d31fb0a4ef0219fe15f825a9340083f4c277.zip
s3:registry: replace typedef REGISTRY_VALUE by struct regval_blob
Michael
Diffstat (limited to 'source3/libads')
-rw-r--r--source3/libads/ldap_printer.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/source3/libads/ldap_printer.c b/source3/libads/ldap_printer.c
index c1bfd75d88..a5290292a5 100644
--- a/source3/libads/ldap_printer.c
+++ b/source3/libads/ldap_printer.c
@@ -118,7 +118,7 @@ ADS_STATUS ads_add_printer_entry(ADS_STRUCT *ads, char *prt_dn,
map a REG_SZ to an ldap mod
*/
static bool map_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods,
- const REGISTRY_VALUE *value)
+ const struct regval_blob *value)
{
char *str_value = NULL;
size_t converted_size;
@@ -145,7 +145,7 @@ static bool map_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods,
map a REG_DWORD to an ldap mod
*/
static bool map_dword(TALLOC_CTX *ctx, ADS_MODLIST *mods,
- const REGISTRY_VALUE *value)
+ const struct regval_blob *value)
{
char *str_value = NULL;
ADS_STATUS status;
@@ -164,7 +164,7 @@ static bool map_dword(TALLOC_CTX *ctx, ADS_MODLIST *mods,
map a boolean REG_BINARY to an ldap mod
*/
static bool map_bool(TALLOC_CTX *ctx, ADS_MODLIST *mods,
- const REGISTRY_VALUE *value)
+ const struct regval_blob *value)
{
char *str_value;
ADS_STATUS status;
@@ -184,7 +184,7 @@ static bool map_bool(TALLOC_CTX *ctx, ADS_MODLIST *mods,
map a REG_MULTI_SZ to an ldap mod
*/
static bool map_multi_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods,
- const REGISTRY_VALUE *value)
+ const struct regval_blob *value)
{
char **str_values = NULL;
size_t converted_size;
@@ -225,14 +225,14 @@ static bool map_multi_sz(TALLOC_CTX *ctx, ADS_MODLIST *mods,
struct valmap_to_ads {
const char *valname;
- bool (*fn)(TALLOC_CTX *, ADS_MODLIST *, const REGISTRY_VALUE *);
+ bool (*fn)(TALLOC_CTX *, ADS_MODLIST *, const struct regval_blob *);
};
/*
map a REG_SZ to an ldap mod
*/
static void map_regval_to_ads(TALLOC_CTX *ctx, ADS_MODLIST *mods,
- REGISTRY_VALUE *value)
+ struct regval_blob *value)
{
const struct valmap_to_ads map[] = {
{SPOOL_REG_ASSETNUMBER, map_sz},
@@ -344,7 +344,7 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli,
} else {
/* Have the data we need now, so start building */
for (i=0; i < count; i++) {
- REGISTRY_VALUE v;
+ struct regval_blob v;
DATA_BLOB blob;
result = push_spoolss_PrinterData(mem_ctx, &blob,
@@ -371,7 +371,7 @@ WERROR get_remote_printer_publishing_data(struct rpc_pipe_client *cli,
printername, win_errstr(result)));
} else {
for (i=0; i < count; i++) {
- REGISTRY_VALUE v;
+ struct regval_blob v;
DATA_BLOB blob = data_blob_null;
result = push_spoolss_PrinterData(mem_ctx, &blob,