summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEudyptula <eitan@mosenkis.net>2009-07-21 16:02:48 -0400
committerEudyptula <eitan@mosenkis.net>2009-07-21 16:02:48 -0400
commit34b01fa4d3614698ac2b1af74a7f56b986fd97c4 (patch)
treec85a7c34256db034a676c683875a405a361bca9b /lib/bkisofs/bkWrite.h
parentFixes/hacks so backend still works with non-execution logging (diff)
downloadingenue-34b01fa4d3614698ac2b1af74a7f56b986fd97c4.tar.gz
ingenue-34b01fa4d3614698ac2b1af74a7f56b986fd97c4.tar.bz2
ingenue-34b01fa4d3614698ac2b1af74a7f56b986fd97c4.zip
Added bkisofs ISO manipulation library and wrote CLI wrapper for it
Diffstat (limited to 'lib/bkisofs/bkWrite.h')
-rw-r--r--lib/bkisofs/bkWrite.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/lib/bkisofs/bkWrite.h b/lib/bkisofs/bkWrite.h
new file mode 100644
index 0000000..05dca20
--- /dev/null
+++ b/lib/bkisofs/bkWrite.h
@@ -0,0 +1,41 @@
+#ifndef bkwrite_h
+#define bkwrite_h
+
+int bootInfoTableChecksum(int oldImage, FileToWrite* file, unsigned* checksum);
+int countDirsOnLevel(const DirToWrite* dir, int targetLevel, int thisLevel);
+int countTreeHeight(const DirToWrite* dir, int heightSoFar);
+unsigned short elToritoChecksum(const unsigned char* record);
+int writeByteBlock(VolInfo* volInfo, unsigned char byteToWrite, int numBytes);
+int writeByteBlockFromFile(int src, VolInfo* volInfo, unsigned numBytes);
+int writeDir(VolInfo* volInfo, DirToWrite* dir, int parentLbNum,
+ int parentNumBytes, int parentPosix, time_t recordingTime,
+ int filenameTypes, bool isRoot);
+int writeDr(VolInfo* volInfo, BaseToWrite* dir, time_t recordingTime, bool isADir,
+ bool isSelfOrParent, bool isFirstRecord, int filenameTypes);
+int writeElToritoBootCatalog(VolInfo* volInfo,
+ bk_off_t* bootRecordSectorNumberOffset);
+int writeElToritoVd(VolInfo* volInfo, bk_off_t* bootCatalogSectorNumberOffset);
+int writeFileContents(VolInfo* volInfo, DirToWrite* dir, int filenameTypes);
+int writeJolietStringField(VolInfo* volInfo, const char* name, size_t fieldSize);
+int writeLongNM(VolInfo* volInfo, BaseToWrite* dir);
+int writeLongNMsInDir(VolInfo* volInfo, DirToWrite* dir);
+int writePathTable(VolInfo* volInfo, const DirToWrite* tree, bool isTypeL,
+ int filenameType);
+int writePathTableRecordsOnLevel(VolInfo* volInfo, const DirToWrite* dir,
+ bool isTypeL, int filenameType,
+ int targetLevel, int thisLevel,
+ int* parentDirNum);
+int writeRockER(VolInfo* volInfo);
+int writeRockNM(VolInfo* volInfo, char* name, size_t nameLen, bool doesContinue);
+int writeRockPX(VolInfo* volInfo, unsigned posixFileMode, bool isADir);
+int writeRockSL(VolInfo* volInfo, SymLinkToWrite* symlink, bool doWrite);
+int writeRockSP(VolInfo* volInfo);
+int writeVdsetTerminator(VolInfo* volInfo);
+int writeVolDescriptor(VolInfo* volInfo, bk_off_t rootDrLocation,
+ unsigned rootDrSize, bk_off_t lPathTableLoc,
+ bk_off_t mPathTableLoc, unsigned pathTableSize,
+ time_t creationTime, bool isPrimary);
+int wroteIsolinuxBootRecord(VolInfo* volInfo, FileToWrite* file,
+ bool* isIsolinux);
+
+#endif