fdisk / src / common.h

Diff from to

src/common.h

 /* Specific for perform_mkfs */
 #define UI_MAKEPARTFS UI_FUNCTION_SPECIFIC_1
 
+extern int warn_fs_support(void);
+#define XASSERT(_condition, _code)                                           \
+do {                                                                         \
+	if(!(_condition))                                                          \
+		{                                                                        \
+			ped_exception_throw(PED_EXCEPTION_ERROR,                               \
+													PED_EXCEPTION_CANCEL,                              \
+													"GNU Fdisk error: %s:%d assertion `%s' failed.",   \
+													__FILE__, __LINE__, #_condition);                  \
+			_code;                                                                 \
+		}                                                                        \
+} while(0)
+
 /* Setting of UICalls */
 extern void set_uicalls(UICalls *);
 
  * not needed
  */
 extern int perform_check (PedDisk*, PedPartition*);
-/* The parameters are the *destination* disk and partition */
-extern int perform_cp (PedDisk*, PedPartition*, UIOpts);
 extern int perform_mklabel (PedDevice*, PedDisk**, const PedDiskType*);
 
+#if 0
 extern int perform_mkfs (PedDisk*, PedPartition*,
                          const PedFileSystemType*, UIOpts);
+#endif
+
 /* NOTE: The PartPos structs *are* modified when calling these function */
-extern int perform_mkpart (PedDisk*, PartPos* pos,
-                      PedPartitionType,	const PedFileSystemType*,
-                      PedPartition **newpart, UIOpts);
-
+extern int perform_mkpart (PedDisk* disk, PartPos *pos, 
+													 PedPartitionType part_type, 
+													 PedPartition **newpart, UIOpts opts);
+#if 0
 extern int perform_mkpartfs (PedDisk*, PartPos* pos,
                         PedPartitionType, const PedFileSystemType*,
                         PedPartition **newpart, UIOpts);
+#endif
 
-extern int perform_move (PedDisk*, PedPartition*, PartPos* pos,
-                    UIOpts);
+extern int perform_move (PedDisk * disk, PedPartition * part, PartPos * pos, UIOpts opts);
 extern int perform_name (PedDisk*, PedPartition*, char*);
 extern int perform_rescue (PedDisk*, PedSector start, PedSector end, UIOpts);
 extern int perform_resize (PedDisk*, PedPartition*, PartPos* pos,
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.