From 5a92d88f38dc9fc65db7e6451eae2d22da04463e Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Mon, 24 May 2010 22:59:04 +0200 Subject: s3:registry: extract reg_perfcount prototypes into header of their own. And use them only when necessary. --- source3/registry/reg_perfcount.h | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 source3/registry/reg_perfcount.h (limited to 'source3/registry/reg_perfcount.h') diff --git a/source3/registry/reg_perfcount.h b/source3/registry/reg_perfcount.h new file mode 100644 index 0000000000..c6b76a5360 --- /dev/null +++ b/source3/registry/reg_perfcount.h @@ -0,0 +1,33 @@ +/* + * Unix SMB/CIFS implementation. + * Virtual Windows Registry Layer + * + * Copyright (C) Marcin Krzysztof Porwit 2005, + * Copyright (C) Gerald (Jerry) Carter 2005. + * + * 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_PERFCOUNT_H +#define _REG_PERFCOUNT_H + +void perfcount_init_keys( void ); +uint32 reg_perfcount_get_base_index(void); +uint32 reg_perfcount_get_last_counter(uint32 base_index); +uint32 reg_perfcount_get_last_help(uint32 last_counter); +uint32 reg_perfcount_get_counter_help(uint32 base_index, char **retbuf); +uint32 reg_perfcount_get_counter_names(uint32 base_index, char **retbuf); +WERROR reg_perfcount_get_hkpd(prs_struct *ps, uint32 max_buf_size, uint32 *outbuf_len, const char *object_ids); + +#endif /* _REG_PERFCOUNT_H */ -- cgit