summaryrefslogtreecommitdiff
path: root/libgpo
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2018-12-13 11:07:24 +0100
committerAndreas Schneider <asn@cryptomilk.org>2019-01-28 10:29:22 +0100
commitbbc4d728781c3ef574ed5c6727f83e7eaaf6d4ef (patch)
treee2c4f31ce8eff3a589f01ac79ce026560f6258fc /libgpo
parent7983b03a89ece230c1702296b113702422f9b0f8 (diff)
downloadsamba-bbc4d728781c3ef574ed5c6727f83e7eaaf6d4ef.tar.gz
libgpo: Use C99 initializer for gp_extension_reg_table
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz>
Diffstat (limited to 'libgpo')
-rw-r--r--libgpo/gpext/gpext.c87
1 files changed, 69 insertions, 18 deletions
diff --git a/libgpo/gpext/gpext.c b/libgpo/gpext/gpext.c
index e482798d579..ea2549da64d 100644
--- a/libgpo/gpext/gpext.c
+++ b/libgpo/gpext/gpext.c
@@ -44,25 +44,76 @@ struct gp_extension *gpext_get_gp_extension_list(void)
/* see http://support.microsoft.com/kb/216358/en-us/ for more info */
struct gp_extension_reg_table gpext_reg_vals[] = {
- { "DllName", REG_EXPAND_SZ },
- { "ProcessGroupPolicy", REG_SZ },
- { "NoMachinePolicy", REG_DWORD },
- { "NoUserPolicy", REG_DWORD },
- { "NoSlowLink", REG_DWORD },
- { "NoBackgroundPolicy", REG_DWORD },
- { "NoGPOListChanges", REG_DWORD },
- { "PerUserLocalSettings", REG_DWORD },
- { "RequiresSuccessfulRegistry", REG_DWORD },
- { "EnableAsynchronousProcessing", REG_DWORD },
- { "ExtensionDebugLevel", REG_DWORD },
+ {
+ .val = "DllName",
+ .type = REG_EXPAND_SZ,
+ },
+ {
+ .val = "ProcessGroupPolicy",
+ .type = REG_SZ,
+ },
+ {
+ .val = "NoMachinePolicy",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "NoUserPolicy",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "NoSlowLink",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "NoBackgroundPolicy",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "NoGPOListChanges",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "PerUserLocalSettings",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "RequiresSuccessfulRegistry",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "EnableAsynchronousProcessing",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "ExtensionDebugLevel",
+ .type = REG_DWORD,
+ },
/* new */
- { "GenerateGroupPolicy", REG_SZ }, /* not supported on w2k */
- { "NotifyLinkTransition", REG_DWORD },
- { "ProcessGroupPolicyEx", REG_SZ }, /* not supported on w2k */
- { "ExtensionEventSource", REG_MULTI_SZ }, /* not supported on w2k */
- { "GenerateGroupPolicy", REG_SZ },
- { "MaxNoGPOListChangesInterval", REG_DWORD },
- { NULL, REG_NONE }
+ {
+ .val = "GenerateGroupPolicy", /* not supported on w2k */
+ .type = REG_SZ,
+ },
+ {
+ .val = "NotifyLinkTransition",
+ .type = REG_DWORD,
+ },
+ {
+ .val = "ProcessGroupPolicyEx", /* not supported on w2k */
+ .type = REG_SZ,
+ },
+ {
+ .val = "ExtensionEventSource", /* not supported on w2k */
+ .type = REG_MULTI_SZ,
+ },
+ {
+ .val = "GenerateGroupPolicy",
+ .type = REG_SZ,
+ },
+ {
+ .val = "MaxNoGPOListChangesInterval",
+ .type = REG_DWORD,
+ },
+ { .type = REG_NONE }
};
/****************************************************************