/*
* labels
*/
-extern struct fdisk_context *fdisk_new_context_from_filename(const char *fname, int readonly);
-extern void fdisk_free_context(struct fdisk_context *cxt);
extern struct fdisk_parttype *fdisk_get_partition_type(struct fdisk_context *cxt, int partnum);
extern int fdisk_set_partition_type(struct fdisk_context *cxt, int partnum,
struct fdisk_parttype *t);
-/*
- * Copyright (C) 2012 Davidlohr Bueso <dave@gnu.org>
- *
- * This program is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with this program; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-#include <errno.h>
-#include <string.h>
-#include <stdlib.h>
-#include <unistd.h>
-#include <ctype.h>
-#ifdef HAVE_LIBBLKID
-#include <blkid.h>
-#endif
-#include "nls.h"
-#include "blkdev.h"
-#include "common.h"
-#include "fdisk.h"
-
-#include "fdiskdoslabel.h"
-#include "fdisksunlabel.h"
-
-int fdisk_debug_mask;
+#include "fdiskP.h"
/**
* fdisk_new_context:
free(cxt->firstsector);
free(cxt);
}
-
-
-
/* init.c */
extern void fdisk_init_debug(int mask);
+/* context.h */
+extern struct fdisk_context *fdisk_new_context_from_filename(
+ const char *fname, int readonly);
+extern void fdisk_free_context(struct fdisk_context *cxt);
+
/* parttype.c */
extern struct fdisk_parttype *fdisk_get_parttype_from_code(struct fdisk_context *cxt,
unsigned int code);