Author: adrian.chadd
Date: Sat May 2 21:26:41 2009
New Revision: 14025
Modified:
branches/LUSCA_HEAD/libsqstore/store_log.c
branches/LUSCA_HEAD/libsqstore/store_log.h
Log:
.. and include the new header printing functions
Modified: branches/LUSCA_HEAD/libsqstore/store_log.c
==============================================================================
--- branches/LUSCA_HEAD/libsqstore/store_log.c (original)
+++ branches/LUSCA_HEAD/libsqstore/store_log.c Sat May 2 21:26:41 2009
@@ -37,3 +37,17 @@
return 1;
}
+
+int
+storeSwapLogPrintHeader(int fd)
+{
+ char buf[sizeof(storeSwapLogData)];
+ storeSwapLogHeader *sh = (storeSwapLogHeader *) buf;
+
+ bzero(buf, sizeof(buf));
+ sh->op = SWAP_LOG_VERSION;
+ sh->version = 1;
+ sh->record_size = sizeof(storeSwapLogData);
+ return write(1, sh, sizeof(storeSwapLogData));
+}
+
Modified: branches/LUSCA_HEAD/libsqstore/store_log.h
==============================================================================
--- branches/LUSCA_HEAD/libsqstore/store_log.h (original)
+++ branches/LUSCA_HEAD/libsqstore/store_log.h Sat May 2 21:26:41 2009
@@ -51,5 +51,6 @@
extern const char * swap_log_op_str[];
extern int storeSwapLogUpgradeEntry(storeSwapLogData *dst,
storeSwapLogDataOld *src);
+extern int storeSwapLogPrintHeader(int fd);
#endif
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"lusca-commit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/lusca-commit?hl=en
-~----------~----~----~----~------~----~------~--~---