File: utils.h

package info (click to toggle)
acorn-fdisk 3.0.6-13
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,068 kB
  • sloc: ansic: 5,422; makefile: 99
file content (29 lines) | stat: -rw-r--r-- 1,107 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
/*
 * lib/part/utils.h
 *
 * Copyright (C) 1997,1998 Russell King
 */
#ifndef PART_UTILS_H
#define PART_UTILS_H

#include "part/part.h"

/* Function: u_int part_add (part_t *part, u_int parn, partinfo_t *pinfo)
 * Purpose : add a new partition (as read from disk) to the partition structures
 * Params  : part  - partitionable device
 *         : parn  - partition number
 *         : pinfo - partition info
 * Returns : FALSE on error
 */
extern u_int part_add (part_t *part, u_int parn, partinfo_i_t *pinfo);

/* Function: u_int check_overlap(part_t *part, u_int exclude_parn, partinfo_t *pinfo)
 * Purpose : check that the new partition information `pinfo' for `exclude_parn' entry
 *           does not overlap physically on the disk with the existing partitions.
 * Params  : part         - partitionable device
 *         : exclude_parn - partition entry to exclude from check
 *         : pinfo        - new partition information to check against
 * Returns : TRUE if new information overlaps existing
 */
extern u_int check_overlap(part_t *part, u_int exclude_parn, const partinfo_t *pinfo);
#endif