s3-id_cache: Use better names for id cache management ops
[idra/samba.git] / source3 / lib / id_cache.c
index 50649dd4095f98abb694b2f4d40cabd887a8341f..f78064ea31dff2ddcda13267efbffefb97b4f238 100644 (file)
@@ -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);
 }