lookup_object.h (1583B)
1 /* 2 This file is part of TALER 3 (C) 2026 Taler Systems SA 4 5 TALER is free software; you can redistribute it and/or modify it under the 6 terms of the GNU Lesser General Public License as published by the Free Software 7 Foundation; either version 3, or (at your option) any later version. 8 9 TALER is distributed in the hope that it will be useful, but WITHOUT ANY 10 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR 11 A PARTICULAR PURPOSE. See the GNU General Public License for more details. 12 13 You should have received a copy of the GNU General Public License along with 14 TALER; see the file COPYING. If not, see <http://www.gnu.org/licenses/> 15 */ 16 /** 17 * @file include/sync/sync-database/lookup_object.h 18 * @brief lookup object procedure wrapper 19 * @author Iván Ávalos 20 */ 21 #ifndef SYNC_DATABASE_LOOKUP_OBJECT_TR_H 22 #define SYNC_DATABASE_LOOKUP_OBJECT_TR_H 23 24 #include <gnunet/gnunet_util_lib.h> 25 #include "sync/sync_service.h" 26 27 /** 28 * Lookup an object blob for an account. 29 * 30 * @param account_pub account to look up 31 * @param object_hash object identifier hash 32 * @param[out] refcount object reference count 33 * @param[out] expiration_date expiration timestamp 34 * @param[out] data_size size of object data 35 * @param[out] data buffer to receive object data 36 * @return transaction status 37 */ 38 enum SYNC_DB_QueryStatus 39 SYNCDB_lookup_object ( 40 const struct SYNC_AccountPublicKeyP *account_pub, 41 const struct GNUNET_HashCode *object_hash, 42 int64_t *refcount, 43 struct GNUNET_TIME_Timestamp *expiration_date, 44 size_t *data_size, 45 void *data); 46 47 #endif