From f3053739b7e62e4749821bf2283d67ec379b1abc Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 24 May 2010 23:37:09 +0200 Subject: s3:registry: move prototype registry_create_admin_token() to new header reg_util_token.h and use it only where necessary. --- source3/registry/reg_util_token.c | 1 + source3/registry/reg_util_token.h | 26 ++++++++++++++++++++++++++ 2 files changed, 27 insertions(+) create mode 100644 source3/registry/reg_util_token.h (limited to 'source3/registry') diff --git a/source3/registry/reg_util_token.c b/source3/registry/reg_util_token.c index 08ed4f4311..f218dfa472 100644 --- a/source3/registry/reg_util_token.c +++ b/source3/registry/reg_util_token.c @@ -18,6 +18,7 @@ */ #include "includes.h" +#include "reg_util_token.h" /* * create a fake token just with enough rights to diff --git a/source3/registry/reg_util_token.h b/source3/registry/reg_util_token.h new file mode 100644 index 0000000000..80cec49fcc --- /dev/null +++ b/source3/registry/reg_util_token.h @@ -0,0 +1,26 @@ +/* + * Unix SMB/CIFS implementation. + * Registry helper routines + * Copyright (C) Michael Adam 2007 + * + * This program is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; either version 3 of the License, or (at your option) + * any later version. + * + * This program is distributed in the hope that it will be useful, but WITHOUT + * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or + * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for + * more details. + * + * You should have received a copy of the GNU General Public License along with + * this program; if not, see . + */ + +#ifndef _REG_UTIL_TOKEN_H +#define _REG_UTIL_TOKEN_H + +NTSTATUS registry_create_admin_token(TALLOC_CTX *mem_ctx, + NT_USER_TOKEN **ptoken); + +#endif /* _REG_UTIL_TOKEN_H */ -- cgit