pcb 4.1.1
An interactive printed circuit board layout editor.
|
00001 00036 /* These decode the set_layer index. */ 00037 #define SL_TYPE(x) ((x) < 0 ? (x) & 0x0f0 : 0) 00038 #define SL_SIDE(x) ((x) & 0x00f) 00039 #define SL_MYSIDE(x) ((((x) & SL_BOTTOM_SIDE)!=0) == (SWAP_IDENT != 0)) 00040 00044 extern void hid_register_hid (HID * hid); 00045 00053 extern HID **hid_list; 00054 00058 extern int hid_num_hids; 00059 00067 int hid_cache_color (int set, const char *name, hidval * val, void **cache); 00068 00069 typedef struct HID_AttrNode 00070 { 00071 struct HID_AttrNode *next; 00072 HID_Attribute *attributes; 00073 int n; 00074 } HID_AttrNode; 00075 00076 extern HID_AttrNode *hid_attr_nodes; 00077 00078 HID_Action *hid_find_action (const char *name); 00079 00080 HID_Flag *hid_find_flag (const char *name); 00081 00089 void hid_parse_command_line (int *argc, char ***argv); 00090 00097 void hid_save_and_show_layer_ons (int *save_array); 00098 00102 void hid_restore_layer_ons (int *save_array); 00103 00104 enum File_Name_Style { 00105 FNS_fixed, 00107 FNS_single, 00110 FNS_first, 00112 }; 00113 00114 /* Returns a filename base that can be used to output the layer. */ 00115 const char *layer_type_to_file_name (int idx, int style); 00116 const char *layer_type_to_file_name_ex (int idx, int style, const char *layer_name); 00117 00122 BoxType *hid_get_extents (void *item); 00123 00124 void derive_default_filename(const char *pcbfile, HID_Attribute *filename_attrib, const char *suffix, char **memory);