summaryrefslogtreecommitdiff
path: root/source3/lib
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2011-08-19 18:10:29 +0200
committerSimo Sorce <idra@samba.org>2011-08-21 09:08:25 -0400
commit61ada700a6ad010846b132d866c66220e6379054 (patch)
treebdcf9da432dc302d5c276ae192fc50fe6332e23c /source3/lib
parent177db0a8802842a0eb9801622bee9f4c1592ef88 (diff)
downloadsamba-61ada700a6ad010846b132d866c66220e6379054.tar.gz
samba-61ada700a6ad010846b132d866c66220e6379054.tar.bz2
samba-61ada700a6ad010846b132d866c66220e6379054.zip
s3-id_cache: Use better names for id cache management ops
The IDMAP term is normally associated with Winbind's idmap stuff. These functions deal with id caching not id mapping. Signed-off-by: Simo Sorce <idra@samba.org>
Diffstat (limited to 'source3/lib')
-rw-r--r--source3/lib/id_cache.c26
-rw-r--r--source3/lib/id_cache.h2
2 files changed, 14 insertions, 14 deletions
diff --git a/source3/lib/id_cache.c b/source3/lib/id_cache.c
index 50649dd409..f78064ea31 100644
--- a/source3/lib/id_cache.c
+++ b/source3/lib/id_cache.c
@@ -146,11 +146,11 @@ static void delete_from_cache(const struct id_cache_ref* id)
}
-static void message_idmap_flush(struct messaging_context *msg_ctx,
- void* private_data,
- uint32_t msg_type,
- struct server_id server_id,
- DATA_BLOB* data)
+static void id_cache_flush(struct messaging_context *msg_ctx,
+ void* private_data,
+ uint32_t msg_type,
+ struct server_id server_id,
+ DATA_BLOB* data)
{
const char *msg = data ? (const char *)data->data : NULL;
@@ -166,11 +166,11 @@ static void message_idmap_flush(struct messaging_context *msg_ctx,
}
}
-static void message_idmap_delete(struct messaging_context *msg_ctx,
- void *private_data,
- uint32_t msg_type,
- struct server_id server_id,
- DATA_BLOB* data)
+static void id_cache_delete(struct messaging_context *msg_ctx,
+ void *private_data,
+ uint32_t msg_type,
+ struct server_id server_id,
+ DATA_BLOB* data)
{
const char *msg = (data && data->data) ? (const char *)data->data : "<NULL>";
struct id_cache_ref id;
@@ -183,8 +183,8 @@ static void message_idmap_delete(struct messaging_context *msg_ctx,
delete_from_cache(&id);
}
-void msg_idmap_register_msgs(struct messaging_context *ctx)
+void id_cache_register_msgs(struct messaging_context *ctx)
{
- messaging_register(ctx, NULL, MSG_IDMAP_FLUSH, message_idmap_flush);
- messaging_register(ctx, NULL, MSG_IDMAP_DELETE, message_idmap_delete);
+ messaging_register(ctx, NULL, ID_CACHE_FLUSH, id_cache_flush);
+ messaging_register(ctx, NULL, ID_CACHE_DELETE, id_cache_delete);
}
diff --git a/source3/lib/id_cache.h b/source3/lib/id_cache.h
index fc78f75192..9aa0e03586 100644
--- a/source3/lib/id_cache.h
+++ b/source3/lib/id_cache.h
@@ -29,4 +29,4 @@ struct id_cache_ref {
bool id_cache_ref_parse(const char* str, struct id_cache_ref* id);
-void msg_idmap_register_msgs(struct messaging_context *ctx);
+void id_cache_register_msgs(struct messaging_context *ctx);