1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-11-29 20:53:55 +02:00
eda-tools/eeshow/kicad/ext.h

40 lines
914 B
C

/*
* kicad/ext.h - Identify files by their extension
*
* Written 2016 by Werner Almesberger
* Copyright 2016 by Werner Almesberger
*
* 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.
*/
#ifndef KICAD_EXT_H
#define KICAD_EXT_H
enum ext {
ext_unknown,
ext_project,
ext_sch,
ext_lib,
ext_pl, /* .kicad_wks, work sheet */
};
struct file_names {
const char *pro; /* just one allowed, may be NULL */
const char *sch; /* just one allowed, may be NULL */
const char *pl; /* just one allowed, may be NULL */
const char **libs;
unsigned n_libs;
};
enum ext identify(const char *path);
void classify_files(struct file_names *fn, char *const *args,
unsigned n_args);
#endif /* !KICAD_EXT_H */