summaryrefslogtreecommitdiffstats
path: root/src/indmanager
diff options
context:
space:
mode:
authorRadek Novacek <rnovacek@redhat.com>2013-05-30 11:20:41 +0200
committerRadek Novacek <rnovacek@redhat.com>2013-06-17 09:36:01 +0200
commit0f1835e72fb4809391f50c55a259b3dc68f2065f (patch)
tree0d125a78d8d974511eac7366af6f5c455f51e84b /src/indmanager
parent7057f8c9ed6f51044a853710defde4ef14f2a340 (diff)
downloadopenlmi-providers-0f1835e72fb4809391f50c55a259b3dc68f2065f.tar.gz
openlmi-providers-0f1835e72fb4809391f50c55a259b3dc68f2065f.tar.xz
openlmi-providers-0f1835e72fb4809391f50c55a259b3dc68f2065f.zip
constify CMPIBroker in ind_manager
Diffstat (limited to 'src/indmanager')
-rw-r--r--src/indmanager/ind_manager.c7
-rw-r--r--src/indmanager/ind_manager.h5
2 files changed, 7 insertions, 5 deletions
diff --git a/src/indmanager/ind_manager.c b/src/indmanager/ind_manager.c
index 6db2a4c..e2fba79 100644
--- a/src/indmanager/ind_manager.c
+++ b/src/indmanager/ind_manager.c
@@ -34,7 +34,7 @@
_im_debug(manager->broker, __FILE__, __func__, __LINE__, __VA_ARGS__)
#include <stdarg.h>
-static inline void _im_debug(CMPIBroker *b, const char *file, const char *func,
+static inline void _im_debug(const CMPIBroker *b, const char *file, const char *func,
int line, const char *format, ...)
{
char text[2048] = "";
@@ -355,7 +355,7 @@ bool gen_diffs(IMManager *manager, IMPolledDiffs *d, IMError *err)
* Extract object path from select expression
* returns match for the first occurence of ISA operator
*/
-CMPIObjectPath *get_object_path(CMPIBroker *broker, CMPISelectExp *se)
+CMPIObjectPath *get_object_path(const CMPIBroker *broker, CMPISelectExp *se)
{
CMPISelectCond *sc = CMGetDoc(se, NULL);
CMPICount scount = CMGetSubCondCountAndType(sc,NULL,NULL);
@@ -758,7 +758,8 @@ static bool remove_all_filters(IMManager *manager, IMError *err)
IMManager* im_create_manager(IMInstGather gather, IMFilterChecker f_checker,
bool polling, IMEventWatcher watcher,
- IMIndType type, CMPIBroker *broker, IMError *err)
+ IMIndType type, const CMPIBroker *broker,
+ IMError *err)
{
if ((!polling && !gather) || (polling && gather) ) {
*err = IM_ERR_GATHER;
diff --git a/src/indmanager/ind_manager.h b/src/indmanager/ind_manager.h
index 2768925..eee3faf 100644
--- a/src/indmanager/ind_manager.h
+++ b/src/indmanager/ind_manager.h
@@ -129,7 +129,7 @@ typedef struct _IMManager {
IMIndType type;
bool running;
bool polling;
- CMPIBroker *broker;
+ const CMPIBroker *broker;
const CMPIContext *ctx_main; /* main thread */
CMPIContext *ctx_manage; /* manage thread */
IMEnumerations *enums;
@@ -159,7 +159,8 @@ typedef enum {
// Return newly created IMManager or NULL and appropiate IMError is set
IMManager* im_create_manager(IMInstGather gather, IMFilterChecker f_checker,
bool polling, IMEventWatcher watcher,
- IMIndType type, CMPIBroker *broker, IMError *err);
+ IMIndType type, const CMPIBroker *broker,
+ IMError *err);
// Destroy given manager.
// Return true when ok or false and IMError is set