bkisofs Usage and Reference Manual
<<< Previous | Function Reference | Next >>>

# Setters

## `bk_rename()`

``int `bk_rename``(VolInfo* `volInfo`, const char* `srcPathAndName`, const char* `newName`);`

Rename the file or directory at `srcPathAndName` (full path on the ISO) to `newName` (just the name, without a path).

## `bk_set_permissions()`

``int `bk_set_permissions``(VolInfo* `volInfo`, const char* `pathAndName`, mode_t `permissions`);`

Set the permissions (not all of the posix info) for an item (file, dir, etc.). This obviously only has an observable effect if RockRidge records are written.

## `bk_cancel_operation()`

``void `bk_cancel_operation``(VolInfo* `volInfo`);`

When one of the bk functions that takes a callback function pointer as a parameter calls the callback (wrap your mind around that), inside the callback is the only opportunity you get to cancel the operation.

The effect is not necessarily immediate, bk will stop what it's doing as soon as it can.

## `bk_set_vol_name()`

``int `bk_set_vol_name``(VolInfo* `volInfo`, const char* `volName`);`

Set the volume name (an attribute of the ISO once it's written). The maximum length is 32 characters (plus NULL byte), the string you pass in will be truncated if it's too long.

## `bk_set_publisher()`

``int `bk_set_publisher``(VolInfo* `volInfo`, const char* `publisher`);`

Set the publisher name (an attribute of the ISO once it's written). The maximum length is 128 characters (plus NULL byte), the string you pass in will be truncated if it's too long.

## `bk_set_follow_symlinks()`

``void `bk_set_follow_symlinks``(VolInfo* `volInfo`, bool `doFollow`);`

Whether bk will add the symbolic links themselves or their target to the ISO. Default is to not follow (i.e. add the links themselves).

## `bk_set_boot_file()`

``int `bk_set_boot_file``(VolInfo* `volInfo`, const char* `srcPathAndName`);`

Sets one of the files on the ISO to be the boot file. This is different from `bk_add_boot_record()` which will set the boot file from a file on the normal filesystem.

`srcPathAndName` is the full path and the name of the file on the ISO. Only a regular file can be used as a boot record.

Using this fuction the only type of boot record possible is BOOT_MEDIA_NO_EMULATION, that's why there is no `bootMediaType` parameter.

<<< Previous | Home | Next >>>
Getters | Up | Data Structures