gerbv  2.10.1-dev~93f1b5
project.h File Reference

Go to the source code of this file.

Functions

int project_is_gerbv_project (const char *filename, gboolean *ret)
 
project_list_t * read_project_file (const char *filename)
 

Detailed Description

Header info for loading and saving project files.

Definition in file project.h.

Function Documentation

◆ project_is_gerbv_project()

int project_is_gerbv_project ( const char *  filename,
gboolean *  ret 
)

Checks whether the supplied file look like a gerbv project by reading the first line and checking if it contains gerbv-file-version.

Returns 0 on success -1 on open error

Definition at line 855 of file project.c.

Referenced by open_files().

◆ read_project_file()

project_list_t* read_project_file ( const char *  filename)

Reads the content of a project file.

Global:
Background color,
global path,
corresponding pick and place file: labelled 'picknplace'
Per layer:
layer color,
layer filename

Definition at line 894 of file project.c.