/* * Copyright 2024 Google LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ #pragma once #include "endpoint_private.h" //! Send a write message for the given blob db item. //! @returns the blob db transaction token BlobDBToken blob_db_endpoint_send_write(BlobDBId db_id, time_t last_updated, const void *key, int key_len, const void *val, int val_len); //! Send a WB message for the given blob db item. //! @returns the blob db transaction token BlobDBToken blob_db_endpoint_send_writeback(BlobDBId db_id, time_t last_updated, const void *key, int key_len, const void *val, int val_len); //! Indicate that blob db sync is done for a given db id void blob_db_endpoint_send_sync_done(BlobDBId db_id);