1 /* 2 Copyright 2005-2010 Jakub Kruszona-Zawadzki, Gemius SA, 2013-2014 EditShare, 2013-2015 Skytechnology sp. z o.o.. 3 4 This file was part of MooseFS and is part of LizardFS. 5 6 LizardFS is free software: you can redistribute it and/or modify 7 it under the terms of the GNU General Public License as published by 8 the Free Software Foundation, version 3. 9 10 LizardFS is distributed in the hope that it will be useful, 11 but WITHOUT ANY WARRANTY; without even the implied warranty of 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 GNU General Public License for more details. 14 15 You should have received a copy of the GNU General Public License 16 along with LizardFS If not, see <http://www.gnu.org/licenses/>. 17 */ 18 19 #pragma once 20 21 #include "common/platform.h" 22 23 #include <inttypes.h> 24 #include <mount/lizard_client_context.h> 25 26 #ifndef __printflike 27 #ifdef __GNUC__ 28 #define __printflike(fmt,va1) __attribute__((__format__(printf, fmt, va1))) 29 #else 30 #define __printflike(fmt, va1) 31 #endif 32 #endif /* __printflike */ 33 34 void oplog_printf( 35 const struct LizardClient::Context &ctx,const char *format,...) __printflike(2, 3); 36 void oplog_printf(const char *format,...) __printflike(1, 2); 37 unsigned long oplog_newhandle(int hflag); 38 void oplog_releasehandle(unsigned long fh); 39 void oplog_getdata(unsigned long fh,uint8_t **buff,uint32_t *leng,uint32_t maxleng); 40 void oplog_releasedata(unsigned long fh); 41