Index: tool_arc.c =================================================================== --- tool_arc.c (revision 30901) +++ tool_arc.c (revision 30902) @@ -74,7 +74,7 @@ pcb_hid_notify_crosshair_change(&PCB->hidlib, pcb_true); } -void pcb_tool_arc_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_arc_notify_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -132,12 +132,12 @@ } } -void pcb_tool_arc_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_arc_adjust_attached_objects(rnd_hidlib_t *hl) { pcb_crosshair.AttachedBox.otherway = pcb_gui->shift_is_pressed(pcb_gui); } -void pcb_tool_arc_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_arc_draw_attached(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -171,7 +171,7 @@ } -pcb_bool pcb_tool_arc_undo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_arc_undo_act(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedBox.State == PCB_CH_STATE_SECOND) { pcb_crosshair.AttachedBox.State = PCB_CH_STATE_FIRST; @@ -193,7 +193,7 @@ return pcb_true; } -void pcb_tool_arc_escape(pcb_hidlib_t *hl) +void pcb_tool_arc_escape(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedLine.State == PCB_CH_STATE_FIRST) pcb_tool_select_by_name(hl, "arrow"); Index: tool_arc.h =================================================================== --- tool_arc.h (revision 30901) +++ tool_arc.h (revision 30902) @@ -2,7 +2,7 @@ void pcb_tool_arc_init(void); void pcb_tool_arc_uninit(void); -void pcb_tool_arc_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_arc_adjust_attached_objects(pcb_hidlib_t *hl); -void pcb_tool_arc_draw_attached(pcb_hidlib_t *hl); -pcb_bool pcb_tool_arc_undo_act(pcb_hidlib_t *hl); +void pcb_tool_arc_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_arc_adjust_attached_objects(rnd_hidlib_t *hl); +void pcb_tool_arc_draw_attached(rnd_hidlib_t *hl); +pcb_bool pcb_tool_arc_undo_act(rnd_hidlib_t *hl); Index: tool_arrow.c =================================================================== --- tool_arrow.c (revision 30901) +++ tool_arrow.c (revision 30902) @@ -64,7 +64,7 @@ at the initial click event) */ static void click_timer_cb(pcb_hidval_t hv) { - pcb_hidlib_t *hl = hv.ptr; + rnd_hidlib_t *hl = hv.ptr; pcb_board_t *pcb = hv.ptr; if (hl->tool_click) { @@ -134,7 +134,7 @@ } } -void pcb_tool_arrow_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_arrow_notify_mode(rnd_hidlib_t *hl) { void *ptr1, *ptr2, *ptr3; int otype, type; @@ -177,7 +177,7 @@ } } -void pcb_tool_arrow_release_mode(pcb_hidlib_t *hl) +void pcb_tool_arrow_release_mode(rnd_hidlib_t *hl) { pcb_box_t box; pcb_board_t *pcb = (pcb_board_t *)hl; @@ -229,7 +229,7 @@ } } -void pcb_tool_arrow_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_arrow_adjust_attached_objects(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedBox.State) { pcb_crosshair.AttachedBox.Point2.X = pcb_crosshair.X; Index: tool_arrow.h =================================================================== --- tool_arrow.h (revision 30901) +++ tool_arrow.h (revision 30902) @@ -1,6 +1,6 @@ extern pcb_tool_t pcb_tool_arrow; void pcb_tool_arrow_uninit(void); -void pcb_tool_arrow_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_arrow_release_mode(pcb_hidlib_t *hl); -void pcb_tool_arrow_adjust_attached_objects(pcb_hidlib_t *hl); +void pcb_tool_arrow_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_arrow_release_mode(rnd_hidlib_t *hl); +void pcb_tool_arrow_adjust_attached_objects(rnd_hidlib_t *hl); Index: tool_buffer.c =================================================================== --- tool_buffer.c (revision 30901) +++ tool_buffer.c (revision 30902) @@ -53,7 +53,7 @@ { } -static void pcb_tool_buffer_notify_mode_(pcb_hidlib_t *hl, pcb_bool keep_ids) +static void pcb_tool_buffer_notify_mode_(rnd_hidlib_t *hl, pcb_bool keep_ids) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -68,12 +68,12 @@ } } -void pcb_tool_buffer_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_buffer_notify_mode(rnd_hidlib_t *hl) { pcb_tool_buffer_notify_mode_(hl, pcb_false); } -void pcb_tool_buffer_release_mode(pcb_hidlib_t *hl) +void pcb_tool_buffer_release_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -87,13 +87,13 @@ } } -void pcb_tool_buffer_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_buffer_adjust_attached_objects(rnd_hidlib_t *hl) { pcb_crosshair.AttachedObject.tx = pcb_crosshair.X; pcb_crosshair.AttachedObject.ty = pcb_crosshair.Y; } -void pcb_tool_buffer_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_buffer_draw_attached(rnd_hidlib_t *hl) { pcb_xordraw_buffer(PCB_PASTEBUFFER); } Index: tool_buffer.h =================================================================== --- tool_buffer.h (revision 30901) +++ tool_buffer.h (revision 30902) @@ -2,6 +2,6 @@ void pcb_tool_buffer_init(void); void pcb_tool_buffer_uninit(void); -void pcb_tool_buffer_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_buffer_release_mode(pcb_hidlib_t *hl); -void pcb_tool_buffer_draw_attached(pcb_hidlib_t *hl); +void pcb_tool_buffer_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_buffer_release_mode(rnd_hidlib_t *hl); +void pcb_tool_buffer_draw_attached(rnd_hidlib_t *hl); Index: tool_copy.c =================================================================== --- tool_copy.c (revision 30901) +++ tool_copy.c (revision 30902) @@ -50,7 +50,7 @@ pcb_crosshair.extobj_edit = NULL; } -void pcb_tool_copy_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_copy_notify_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -92,7 +92,7 @@ } } -void pcb_tool_copy_release_mode(pcb_hidlib_t *hl) +void pcb_tool_copy_release_mode(rnd_hidlib_t *hl) { if (hl->tool_hit) { pcb_tool_copy_notify_mode(hl); @@ -100,18 +100,18 @@ } } -void pcb_tool_copy_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_copy_adjust_attached_objects(rnd_hidlib_t *hl) { pcb_crosshair.AttachedObject.tx = pcb_crosshair.X; pcb_crosshair.AttachedObject.ty = pcb_crosshair.Y; } -void pcb_tool_copy_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_copy_draw_attached(rnd_hidlib_t *hl) { pcb_xordraw_movecopy(); } -pcb_bool pcb_tool_copy_undo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_copy_undo_act(rnd_hidlib_t *hl) { /* don't allow undo in the middle of an operation */ if (pcb_crosshair.AttachedObject.State != PCB_CH_STATE_FIRST) Index: tool_copy.h =================================================================== --- tool_copy.h (revision 30901) +++ tool_copy.h (revision 30902) @@ -1,7 +1,7 @@ extern pcb_tool_t pcb_tool_copy; void pcb_tool_copy_uninit(void); -void pcb_tool_copy_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_copy_release_mode(pcb_hidlib_t *hl); -void pcb_tool_copy_draw_attached(pcb_hidlib_t *hl); -pcb_bool pcb_tool_copy_undo_act(pcb_hidlib_t *hl); +void pcb_tool_copy_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_copy_release_mode(rnd_hidlib_t *hl); +void pcb_tool_copy_draw_attached(rnd_hidlib_t *hl); +pcb_bool pcb_tool_copy_undo_act(rnd_hidlib_t *hl); Index: tool_insert.c =================================================================== --- tool_insert.c (revision 30901) +++ tool_insert.c (revision 30902) @@ -60,7 +60,7 @@ pcb_hid_notify_crosshair_change(&PCB->hidlib, pcb_true); } -void pcb_tool_insert_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_insert_notify_mode(rnd_hidlib_t *hl) { switch (pcb_crosshair.AttachedObject.State) { /* first notify, lookup object */ @@ -113,7 +113,7 @@ } } -void pcb_tool_insert_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_insert_adjust_attached_objects(rnd_hidlib_t *hl) { pcb_point_t *pnt; pnt = pcb_adjust_insert_point(); @@ -121,12 +121,12 @@ InsertedPoint = *pnt; } -void pcb_tool_insert_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_insert_draw_attached(rnd_hidlib_t *hl) { pcb_xordraw_insert_pt_obj(); } -pcb_bool pcb_tool_insert_undo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_insert_undo_act(rnd_hidlib_t *hl) { /* don't allow undo in the middle of an operation */ if (pcb_crosshair.AttachedObject.State != PCB_CH_STATE_FIRST) Index: tool_insert.h =================================================================== --- tool_insert.h (revision 30901) +++ tool_insert.h (revision 30902) @@ -1,7 +1,7 @@ extern pcb_tool_t pcb_tool_insert; void pcb_tool_insert_uninit(void); -void pcb_tool_insert_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_insert_adjust_attached_objects(pcb_hidlib_t *hl); -void pcb_tool_insert_draw_attached(pcb_hidlib_t *hl); -pcb_bool pcb_tool_insert_undo_act(pcb_hidlib_t *hl); +void pcb_tool_insert_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_insert_adjust_attached_objects(rnd_hidlib_t *hl); +void pcb_tool_insert_draw_attached(rnd_hidlib_t *hl); +pcb_bool pcb_tool_insert_undo_act(rnd_hidlib_t *hl); Index: tool_line.c =================================================================== --- tool_line.c (revision 30901) +++ tool_line.c (revision 30902) @@ -97,7 +97,7 @@ } /* creates points of a line (when clicked) */ -static void notify_line(pcb_hidlib_t *hl) +static void notify_line(rnd_hidlib_t *hl) { int type = PCB_OBJ_VOID; void *ptr1, *ptr2, *ptr3; @@ -142,7 +142,7 @@ } } -void pcb_tool_line_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_line_notify_mode(rnd_hidlib_t *hl) { void *ptr1, *ptr2, *ptr3; pcb_board_t *pcb = (pcb_board_t *)hl; @@ -338,7 +338,7 @@ } } -void pcb_tool_line_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_line_adjust_attached_objects(rnd_hidlib_t *hl) { /* don't draw outline when ctrl key is pressed */ if (pcb_gui->control_is_pressed(pcb_gui)) { @@ -350,7 +350,7 @@ } } -void pcb_tool_line_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_line_draw_attached(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -389,7 +389,7 @@ } } -pcb_bool pcb_tool_line_undo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_line_undo_act(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -457,7 +457,7 @@ return pcb_true; } -pcb_bool pcb_tool_line_redo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_line_redo_act(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -475,7 +475,7 @@ return pcb_false; } -void pcb_tool_line_escape(pcb_hidlib_t *hl) +void pcb_tool_line_escape(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedLine.State == PCB_CH_STATE_FIRST) pcb_tool_select_by_name(hl, "arrow"); Index: tool_line.h =================================================================== --- tool_line.h (revision 30901) +++ tool_line.h (revision 30902) @@ -2,8 +2,8 @@ void pcb_tool_line_init(void); void pcb_tool_line_uninit(void); -void pcb_tool_line_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_line_adjust_attached_objects(pcb_hidlib_t *hl); -void pcb_tool_line_draw_attached(pcb_hidlib_t *hl); -pcb_bool pcb_tool_line_undo_act(pcb_hidlib_t *hl); -pcb_bool pcb_tool_line_redo_act(pcb_hidlib_t *hl); +void pcb_tool_line_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_line_adjust_attached_objects(rnd_hidlib_t *hl); +void pcb_tool_line_draw_attached(rnd_hidlib_t *hl); +pcb_bool pcb_tool_line_undo_act(rnd_hidlib_t *hl); +pcb_bool pcb_tool_line_redo_act(rnd_hidlib_t *hl); Index: tool_lock.c =================================================================== --- tool_lock.c (revision 30901) +++ tool_lock.c (revision 30902) @@ -46,7 +46,7 @@ #define PCB_OBJ_CLASS_LOCK (PCB_OBJ_PSTK | PCB_OBJ_LINE | PCB_OBJ_ARC | PCB_OBJ_POLY | PCB_OBJ_SUBC | PCB_OBJ_TEXT | PCB_OBJ_LOCKED) -void pcb_tool_lock_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_lock_notify_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; void *ptr1, *ptr2, *ptr3; Index: tool_lock.h =================================================================== --- tool_lock.h (revision 30901) +++ tool_lock.h (revision 30902) @@ -1,3 +1,3 @@ extern pcb_tool_t pcb_tool_lock; -void pcb_tool_lock_notify_mode(pcb_hidlib_t *hl); +void pcb_tool_lock_notify_mode(rnd_hidlib_t *hl); Index: tool_move.c =================================================================== --- tool_move.c (revision 30901) +++ tool_move.c (revision 30902) @@ -52,7 +52,7 @@ pcb_crosshair.extobj_edit = NULL; } -void pcb_tool_move_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_move_notify_mode(rnd_hidlib_t *hl) { pcb_coord_t dx, dy; @@ -101,7 +101,7 @@ } } -void pcb_tool_move_release_mode(pcb_hidlib_t *hl) +void pcb_tool_move_release_mode(rnd_hidlib_t *hl) { if (hl->tool_hit) { pcb_tool_move_notify_mode(hl); @@ -109,18 +109,18 @@ } } -void pcb_tool_move_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_move_adjust_attached_objects(rnd_hidlib_t *hl) { pcb_crosshair.AttachedObject.tx = pcb_crosshair.X; pcb_crosshair.AttachedObject.ty = pcb_crosshair.Y; } -void pcb_tool_move_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_move_draw_attached(rnd_hidlib_t *hl) { pcb_xordraw_movecopy(); } -pcb_bool pcb_tool_move_undo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_move_undo_act(rnd_hidlib_t *hl) { /* don't allow undo in the middle of an operation */ if (pcb_crosshair.AttachedObject.State != PCB_CH_STATE_FIRST) Index: tool_move.h =================================================================== --- tool_move.h (revision 30901) +++ tool_move.h (revision 30902) @@ -1,7 +1,7 @@ extern pcb_tool_t pcb_tool_move; void pcb_tool_move_uninit(void); -void pcb_tool_move_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_move_release_mode(pcb_hidlib_t *hl); -void pcb_tool_move_draw_attached(pcb_hidlib_t *hl); -pcb_bool pcb_tool_move_undo_act(pcb_hidlib_t *hl); +void pcb_tool_move_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_move_release_mode(rnd_hidlib_t *hl); +void pcb_tool_move_draw_attached(rnd_hidlib_t *hl); +pcb_bool pcb_tool_move_undo_act(rnd_hidlib_t *hl); Index: tool_poly.c =================================================================== --- tool_poly.c (revision 30901) +++ tool_poly.c (revision 30902) @@ -53,7 +53,7 @@ TODO("remove this when pcb_tool_poly_notify_mode() loses PCB") #include "board.h" -void pcb_tool_poly_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_poly_notify_mode(rnd_hidlib_t *hl) { pcb_point_t *points = pcb_crosshair.AttachedPolygon.Points; pcb_cardinal_t n = pcb_crosshair.AttachedPolygon.PointN; @@ -98,7 +98,7 @@ } } -void pcb_tool_poly_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_poly_adjust_attached_objects(rnd_hidlib_t *hl) { pcb_attached_line_t *line = &pcb_crosshair.AttachedLine; @@ -117,7 +117,7 @@ pcb_line_45(line); } -void pcb_tool_poly_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_poly_draw_attached(rnd_hidlib_t *hl) { /* draw only if starting point is set */ if (pcb_crosshair.AttachedLine.State != PCB_CH_STATE_FIRST) @@ -131,7 +131,7 @@ } } -pcb_bool pcb_tool_poly_undo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_poly_undo_act(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedPolygon.PointN) { pcb_polygon_go_to_prev_point(); @@ -140,7 +140,7 @@ return pcb_true; } -pcb_bool pcb_tool_poly_redo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_poly_redo_act(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedPolygon.PointN) { pcb_polygon_go_to_next_point(); @@ -150,7 +150,7 @@ return pcb_true; } -void pcb_tool_poly_escape(pcb_hidlib_t *hl) +void pcb_tool_poly_escape(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedLine.State == PCB_CH_STATE_FIRST) pcb_tool_select_by_name(hl, "arrow"); Index: tool_poly.h =================================================================== --- tool_poly.h (revision 30901) +++ tool_poly.h (revision 30902) @@ -1,8 +1,8 @@ extern pcb_tool_t pcb_tool_poly; void pcb_tool_poly_uninit(void); -void pcb_tool_poly_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_poly_adjust_attached_objects(pcb_hidlib_t *hl); -void pcb_tool_poly_draw_attached(pcb_hidlib_t *hl); -pcb_bool pcb_tool_poly_undo_act(pcb_hidlib_t *hl); -pcb_bool pcb_tool_poly_redo_act(pcb_hidlib_t *hl); +void pcb_tool_poly_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_poly_adjust_attached_objects(rnd_hidlib_t *hl); +void pcb_tool_poly_draw_attached(rnd_hidlib_t *hl); +pcb_bool pcb_tool_poly_undo_act(rnd_hidlib_t *hl); +pcb_bool pcb_tool_poly_redo_act(rnd_hidlib_t *hl); Index: tool_polyhole.c =================================================================== --- tool_polyhole.c (revision 30901) +++ tool_polyhole.c (revision 30902) @@ -54,7 +54,7 @@ TODO("remove this when pcb_tool_polyhole_notify_mode() loses PCB") #include "board.h" -void pcb_tool_polyhole_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_polyhole_notify_mode(rnd_hidlib_t *hl) { switch (pcb_crosshair.AttachedObject.State) { /* first notify, lookup object */ @@ -128,7 +128,7 @@ } } -void pcb_tool_polyhole_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_polyhole_adjust_attached_objects(rnd_hidlib_t *hl) { pcb_attached_line_t *line = &pcb_crosshair.AttachedLine; @@ -147,7 +147,7 @@ pcb_line_45(line); } -void pcb_tool_polyhole_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_polyhole_draw_attached(rnd_hidlib_t *hl) { /* draw only if starting point is set */ if (pcb_crosshair.AttachedLine.State != PCB_CH_STATE_FIRST) @@ -161,7 +161,7 @@ } } -pcb_bool pcb_tool_polyhole_undo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_polyhole_undo_act(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedPolygon.PointN) { pcb_polygon_go_to_prev_point(); @@ -170,7 +170,7 @@ return pcb_true; } -pcb_bool pcb_tool_polyhole_redo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_polyhole_redo_act(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedPolygon.PointN) { pcb_polygon_go_to_next_point(); @@ -180,7 +180,7 @@ return pcb_true; } -void pcb_tool_polyhole_escape(pcb_hidlib_t *hl) +void pcb_tool_polyhole_escape(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedLine.State == PCB_CH_STATE_FIRST) pcb_tool_select_by_name(hl, "arrow"); Index: tool_polyhole.h =================================================================== --- tool_polyhole.h (revision 30901) +++ tool_polyhole.h (revision 30902) @@ -1,8 +1,8 @@ extern pcb_tool_t pcb_tool_polyhole; void pcb_tool_polyhole_uninit(void); -void pcb_tool_polyhole_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_polyhole_adjust_attached_objects(pcb_hidlib_t *hl); -void pcb_tool_polyhole_draw_attached(pcb_hidlib_t *hl); -pcb_bool pcb_tool_polyhole_undo_act(pcb_hidlib_t *hl); -pcb_bool pcb_tool_polyhole_redo_act(pcb_hidlib_t *hl); +void pcb_tool_polyhole_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_polyhole_adjust_attached_objects(rnd_hidlib_t *hl); +void pcb_tool_polyhole_draw_attached(rnd_hidlib_t *hl); +pcb_bool pcb_tool_polyhole_undo_act(rnd_hidlib_t *hl); +pcb_bool pcb_tool_polyhole_redo_act(rnd_hidlib_t *hl); Index: tool_rectangle.c =================================================================== --- tool_rectangle.c (revision 30901) +++ tool_rectangle.c (revision 30902) @@ -53,7 +53,7 @@ pcb_hid_notify_crosshair_change(&PCB->hidlib, pcb_true); } -void pcb_tool_rectangle_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_rectangle_notify_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -94,7 +94,7 @@ } } -void pcb_tool_rectangle_adjust_attached_objects(pcb_hidlib_t *hl) +void pcb_tool_rectangle_adjust_attached_objects(rnd_hidlib_t *hl) { switch (pcb_crosshair.AttachedBox.State) { case PCB_CH_STATE_SECOND: /* one corner is selected */ @@ -107,7 +107,7 @@ } } -pcb_bool pcb_tool_rectangle_anydo_act(pcb_hidlib_t *hl) +pcb_bool pcb_tool_rectangle_anydo_act(rnd_hidlib_t *hl) { /* don't allow undo in the middle of an operation */ if (pcb_crosshair.AttachedBox.State != PCB_CH_STATE_FIRST) @@ -115,7 +115,7 @@ return pcb_true; } -void pcb_tool_rectangle_escape(pcb_hidlib_t *hl) +void pcb_tool_rectangle_escape(rnd_hidlib_t *hl) { if (pcb_crosshair.AttachedLine.State == PCB_CH_STATE_FIRST) pcb_tool_select_by_name(hl, "arrow"); Index: tool_rectangle.h =================================================================== --- tool_rectangle.h (revision 30901) +++ tool_rectangle.h (revision 30902) @@ -1,6 +1,6 @@ extern pcb_tool_t pcb_tool_rectangle; void pcb_tool_rectangle_uninit(void); -void pcb_tool_rectangle_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_rectangle_adjust_attached_objects(pcb_hidlib_t *hl); -pcb_bool pcb_tool_rectangle_undo_act(pcb_hidlib_t *hl); +void pcb_tool_rectangle_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_rectangle_adjust_attached_objects(rnd_hidlib_t *hl); +pcb_bool pcb_tool_rectangle_undo_act(rnd_hidlib_t *hl); Index: tool_remove.c =================================================================== --- tool_remove.c (revision 30901) +++ tool_remove.c (revision 30902) @@ -46,7 +46,7 @@ #include "tool_logic.h" -void pcb_tool_remove_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_remove_notify_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; void *ptr1, *ptr2, *ptr3; Index: tool_remove.h =================================================================== --- tool_remove.h (revision 30901) +++ tool_remove.h (revision 30902) @@ -1,3 +1,3 @@ extern pcb_tool_t pcb_tool_remove; -void pcb_tool_remove_notify_mode(pcb_hidlib_t *hl); +void pcb_tool_remove_notify_mode(rnd_hidlib_t *hl); Index: tool_rotate.c =================================================================== --- tool_rotate.c (revision 30901) +++ tool_rotate.c (revision 30902) @@ -42,7 +42,7 @@ #include "crosshair.h" -void pcb_tool_rotate_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_rotate_notify_mode(rnd_hidlib_t *hl) { pcb_screen_obj_rotate90((pcb_board_t *)hl, hl->tool_x, hl->tool_y, pcb_gui->shift_is_pressed(pcb_gui) ? (conf_core.editor.show_solder_side ? 1 : 3) : (conf_core.editor.show_solder_side ? 3 : 1)); Index: tool_rotate.h =================================================================== --- tool_rotate.h (revision 30901) +++ tool_rotate.h (revision 30902) @@ -1,3 +1,3 @@ extern pcb_tool_t pcb_tool_rotate; -void pcb_tool_rotate_notify_mode(pcb_hidlib_t *hl); +void pcb_tool_rotate_notify_mode(rnd_hidlib_t *hl); Index: tool_text.c =================================================================== --- tool_text.c (revision 30901) +++ tool_text.c (revision 30902) @@ -45,7 +45,7 @@ #include "obj_text_draw.h" -void pcb_tool_text_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_text_notify_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; char *string; @@ -70,7 +70,7 @@ } } -void pcb_tool_text_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_text_draw_attached(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; pcb_text_t text; Index: tool_text.h =================================================================== --- tool_text.h (revision 30901) +++ tool_text.h (revision 30902) @@ -1,3 +1,3 @@ extern pcb_tool_t pcb_tool_text; -void pcb_tool_text_notify_mode(pcb_hidlib_t *hl); +void pcb_tool_text_notify_mode(rnd_hidlib_t *hl); Index: tool_thermal.c =================================================================== --- tool_thermal.c (revision 30901) +++ tool_thermal.c (revision 30902) @@ -89,7 +89,7 @@ } -void pcb_tool_thermal_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_thermal_notify_mode(rnd_hidlib_t *hl) { void *ptr1, *ptr2, *ptr3; int type; Index: tool_thermal.h =================================================================== --- tool_thermal.h (revision 30901) +++ tool_thermal.h (revision 30902) @@ -1,6 +1,6 @@ extern pcb_tool_t pcb_tool_thermal; -void pcb_tool_thermal_notify_mode(pcb_hidlib_t *hl); +void pcb_tool_thermal_notify_mode(rnd_hidlib_t *hl); /* direct call: cycle through thermal modes on a padstack - provided for tool_via.h */ void pcb_tool_thermal_on_pstk(pcb_pstk_t *ps, unsigned long lid); Index: tool_via.c =================================================================== --- tool_via.c (revision 30901) +++ tool_via.c (revision 30902) @@ -51,7 +51,7 @@ TODO("padstack: remove this when via is removed and the padstack is created from style directly") #include "src_plugins/lib_compat_help/pstk_compat.h" -void pcb_tool_via_notify_mode(pcb_hidlib_t *hl) +void pcb_tool_via_notify_mode(rnd_hidlib_t *hl) { pcb_board_t *pcb = (pcb_board_t *)hl; @@ -92,7 +92,7 @@ } -void pcb_tool_via_draw_attached(pcb_hidlib_t *hl) +void pcb_tool_via_draw_attached(rnd_hidlib_t *hl) { TODO("pstk: replace this when route style has a prototype") xor_draw_fake_via(pcb_crosshair.X, pcb_crosshair.Y, conf_core.design.via_thickness, 0); Index: tool_via.h =================================================================== --- tool_via.h (revision 30901) +++ tool_via.h (revision 30902) @@ -1,4 +1,4 @@ extern pcb_tool_t pcb_tool_via; -void pcb_tool_via_notify_mode(pcb_hidlib_t *hl); -void pcb_tool_via_draw_attached(pcb_hidlib_t *hl); +void pcb_tool_via_notify_mode(rnd_hidlib_t *hl); +void pcb_tool_via_draw_attached(rnd_hidlib_t *hl);