ark
bk.h File Reference
#include <stdbool.h>
#include <stdlib.h>
#include <sys/types.h>
#include <unistd.h>
#include <limits.h>
#include "bkError.h"
Include dependency graph for bk.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.
Classes | |
| struct | BkFileBase |
| struct | BkDir |
| struct | BkHardLink |
| struct | BkFile |
| struct | BkSymLink |
| struct | VolInfo |
Defines | |
| #define | FNTYPE_9660 1 |
| #define | FNTYPE_ROCKRIDGE 2 |
| #define | FNTYPE_JOLIET 4 |
| #define | NCHARS_FILE_ID_MAX_STORE 256 |
| #define | NCHARS_SYMLINK_TARGET_MAX 251 |
| #define | MAX_NBYTES_HARDLINK_HEAD 32 |
| #define | BOOT_MEDIA_NONE 0 |
| #define | BOOT_MEDIA_NO_EMULATION 1 |
| #define | BOOT_MEDIA_1_2_FLOPPY 2 |
| #define | BOOT_MEDIA_1_44_FLOPPY 3 |
| #define | BOOT_MEDIA_2_88_FLOPPY 4 |
| #define | BOOT_MEDIA_HARD_DISK 5 |
| #define | READ_WRITE_BUFFER_SIZE 102400 |
| #define | BK_WARNING_MAX_LEN 512 |
| #define | IS_DIR(posix) ((posix & 0770000) == 0040000) |
| #define | IS_REG_FILE(posix) ((posix & 0770000) == 0100000) |
| #define | IS_SYMLINK(posix) ((posix & 0770000) == 0120000) |
| #define | BK_BASE_PTR(item) ((BkFileBase*)(item)) |
| #define | BK_DIR_PTR(item) ((BkDir*)(item)) |
| #define | BK_FILE_PTR(item) ((BkFile*)(item)) |
| #define | BK_SYMLINK_PTR(item) ((BkSymLink*)(item)) |
Functions | |
| int | bk_add_boot_record (VolInfo *volInfo, const char *srcPathAndName, int bootMediaType) |
| int | bk_add (VolInfo *volInfo, const char *srcPathAndName, const char *destPathStr, void(*progressFunction)(VolInfo *)) |
| int | bk_add_as (VolInfo *volInfo, const char *srcPathAndName, const char *destPathStr, const char *nameToUse, void(*progressFunction)(VolInfo *)) |
| int | bk_create_dir (VolInfo *volInfo, const char *destPathStr, const char *newDirName) |
| void | bk_delete_boot_record (VolInfo *volInfo) |
| int | bk_delete (VolInfo *volInfo, const char *pathAndName) |
| int | bk_extract_boot_record (VolInfo *volInfo, const char *destPathAndName, unsigned destFilePerms) |
| int | bk_extract (VolInfo *volInfo, const char *srcPathAndName, const char *destDir, bool keepPermissions, void(*progressFunction)(VolInfo *)) |
| int | bk_extract_as (VolInfo *volInfo, const char *srcPathAndName, const char *destDir, const char *nameToUse, bool keepPermissions, void(*progressFunction)(VolInfo *)) |
| off_t | bk_estimate_iso_size (const VolInfo *volInfo, int filenameTypes) |
| time_t | bk_get_creation_time (const VolInfo *volInfo) |
| int | bk_get_dir_from_string (const VolInfo *volInfo, const char *pathStr, BkDir **dirFoundPtr) |
| int | bk_get_permissions (VolInfo *volInfo, const char *pathAndName, mode_t *permissions) |
| const char * | bk_get_publisher (const VolInfo *volInfo) |
| const char * | bk_get_volume_name (const VolInfo *volInfo) |
| const char * | bk_get_error_string (int errorId) |
| void | bk_cancel_operation (VolInfo *volInfo) |
| void | bk_destroy_vol_info (VolInfo *volInfo) |
| int | bk_init_vol_info (VolInfo *volInfo, bool scanForDuplicateFiles) |
| int | bk_rename (VolInfo *volInfo, const char *srcPathAndName, const char *newName) |
| int | bk_set_boot_file (VolInfo *volInfo, const char *srcPathAndName) |
| void | bk_set_follow_symlinks (VolInfo *volInfo, bool doFollow) |
| int | bk_set_permissions (VolInfo *volInfo, const char *pathAndName, mode_t permissions) |
| void | bk_set_publisher (VolInfo *volInfo, const char *publisher) |
| void | bk_set_vol_name (VolInfo *volInfo, const char *volName) |
| int | bk_open_image (VolInfo *volInfo, const char *filename) |
| int | bk_read_dir_tree (VolInfo *volInfo, int filenameType, bool keepPosixPermissions, void(*progressFunction)(VolInfo *)) |
| int | bk_read_vol_info (VolInfo *volInfo) |
| int | bk_write_image (const char *newImagePathAndName, VolInfo *volInfo, time_t creationTime, int filenameTypes, void(*progressFunction)(VolInfo *, double)) |
Define Documentation
| #define BK_BASE_PTR | ( | item | ) | ((BkFileBase*)(item)) |
Function Documentation
| int bk_add | ( | VolInfo * | volInfo, | |
| const char * | srcPathAndName, | |||
| const char * | destPathStr, | |||
| void(*)(VolInfo *) | progressFunction | |||
| ) |
| int bk_add_as | ( | VolInfo * | volInfo, | |
| const char * | srcPathAndName, | |||
| const char * | destPathStr, | |||
| const char * | nameToUse, | |||
| void(*)(VolInfo *) | progressFunction | |||
| ) |
| int bk_add_boot_record | ( | VolInfo * | volInfo, | |
| const char * | srcPathAndName, | |||
| int | bootMediaType | |||
| ) |
| void bk_cancel_operation | ( | VolInfo * | volInfo | ) |
| int bk_create_dir | ( | VolInfo * | volInfo, | |
| const char * | destPathStr, | |||
| const char * | newDirName | |||
| ) |
| int bk_delete | ( | VolInfo * | volInfo, | |
| const char * | pathAndName | |||
| ) |
| void bk_delete_boot_record | ( | VolInfo * | volInfo | ) |
| void bk_destroy_vol_info | ( | VolInfo * | volInfo | ) |
| off_t bk_estimate_iso_size | ( | const VolInfo * | volInfo, | |
| int | filenameTypes | |||
| ) |
| int bk_extract | ( | VolInfo * | volInfo, | |
| const char * | srcPathAndName, | |||
| const char * | destDir, | |||
| bool | keepPermissions, | |||
| void(*)(VolInfo *) | progressFunction | |||
| ) |
| int bk_extract_as | ( | VolInfo * | volInfo, | |
| const char * | srcPathAndName, | |||
| const char * | destDir, | |||
| const char * | nameToUse, | |||
| bool | keepPermissions, | |||
| void(*)(VolInfo *) | progressFunction | |||
| ) |
| int bk_extract_boot_record | ( | VolInfo * | volInfo, | |
| const char * | destPathAndName, | |||
| unsigned | destFilePerms | |||
| ) |
| time_t bk_get_creation_time | ( | const VolInfo * | volInfo | ) |
| const char* bk_get_error_string | ( | int | errorId | ) |
| int bk_get_permissions | ( | VolInfo * | volInfo, | |
| const char * | pathAndName, | |||
| mode_t * | permissions | |||
| ) |
| const char* bk_get_publisher | ( | const VolInfo * | volInfo | ) |
| const char* bk_get_volume_name | ( | const VolInfo * | volInfo | ) |
| int bk_init_vol_info | ( | VolInfo * | volInfo, | |
| bool | scanForDuplicateFiles | |||
| ) |
| int bk_open_image | ( | VolInfo * | volInfo, | |
| const char * | filename | |||
| ) |
| int bk_read_dir_tree | ( | VolInfo * | volInfo, | |
| int | filenameType, | |||
| bool | keepPosixPermissions, | |||
| void(*)(VolInfo *) | progressFunction | |||
| ) |
| int bk_read_vol_info | ( | VolInfo * | volInfo | ) |
| int bk_rename | ( | VolInfo * | volInfo, | |
| const char * | srcPathAndName, | |||
| const char * | newName | |||
| ) |
| int bk_set_boot_file | ( | VolInfo * | volInfo, | |
| const char * | srcPathAndName | |||
| ) |
| void bk_set_follow_symlinks | ( | VolInfo * | volInfo, | |
| bool | doFollow | |||
| ) |
| int bk_set_permissions | ( | VolInfo * | volInfo, | |
| const char * | pathAndName, | |||
| mode_t | permissions | |||
| ) |
| void bk_set_publisher | ( | VolInfo * | volInfo, | |
| const char * | publisher | |||
| ) |
| void bk_set_vol_name | ( | VolInfo * | volInfo, | |
| const char * | volName | |||
| ) |
| int bk_write_image | ( | const char * | newImagePathAndName, | |
| VolInfo * | volInfo, | |||
| time_t | creationTime, | |||
| int | filenameTypes, | |||
| void(*)(VolInfo *, double) | progressFunction | |||
| ) |
KDE 4.0 API Reference