Commit f905b469 authored by jean-pierre charras's avatar jean-pierre charras
Browse files

Code cleanup: Pcbnew: move files relative to exort functions to the new folder exporters

all: remove include <protos.h>  from a lot of  files which do not need it.
parents e9d3f787 710e6a56
Loading
Loading
Loading
Loading
+1 −13
Original line number Original line Diff line number Diff line
@@ -13,19 +13,10 @@ static const wxString HOSTNAME( wxT( "localhost" ) );


// buffer for read and write data in socket connections
// buffer for read and write data in socket connections
#define IPC_BUF_SIZE 4096
#define IPC_BUF_SIZE 4096

static char client_ipc_buffer[IPC_BUF_SIZE];
static char client_ipc_buffer[IPC_BUF_SIZE];


static wxSocketServer* server;
static wxSocketServer* server;


void      (*RemoteFct)(const char* cmd);


void SetupServerFunction( void (*remotefct)(const char* remotecmd) )
{
    RemoteFct = remotefct;
}



/**********************************/
/**********************************/
/* Routines related to the server */
/* Routines related to the server */
@@ -75,10 +66,7 @@ void EDA_DRAW_FRAME::OnSockRequest( wxSocketEvent& evt )
        sock->Read( client_ipc_buffer + 1, IPC_BUF_SIZE - 2 );
        sock->Read( client_ipc_buffer + 1, IPC_BUF_SIZE - 2 );
        len = 1 + sock->LastCount();
        len = 1 + sock->LastCount();
        client_ipc_buffer[len] = 0;
        client_ipc_buffer[len] = 0;

        ExecuteRemoteCommand( client_ipc_buffer );
        if( RemoteFct )
            RemoteFct( client_ipc_buffer );

        break;
        break;


    case wxSOCKET_LOST:
    case wxSOCKET_LOST:
+0 −1
Original line number Original line Diff line number Diff line
@@ -36,7 +36,6 @@
#include <wxEeschemaStruct.h>
#include <wxEeschemaStruct.h>


#include <general.h>
#include <general.h>
#include <protos.h>




const wxString traceFindItem( wxT( "KicadFindItem" ) );
const wxString traceFindItem( wxT( "KicadFindItem" ) );
+0 −1
Original line number Original line Diff line number Diff line
@@ -34,7 +34,6 @@


#include <general.h>
#include <general.h>
#include <class_library.h>
#include <class_library.h>
#include <protos.h>
#include <libeditframe.h>
#include <libeditframe.h>




+0 −1
Original line number Original line Diff line number Diff line
@@ -36,7 +36,6 @@
#include <lib_draw_item.h>
#include <lib_draw_item.h>
#include <lib_pin.h>
#include <lib_pin.h>
#include <general.h>
#include <general.h>
#include <protos.h>
#include <sch_bus_entry.h>
#include <sch_bus_entry.h>
#include <sch_junction.h>
#include <sch_junction.h>
#include <sch_line.h>
#include <sch_line.h>
+0 −1
Original line number Original line Diff line number Diff line
@@ -36,7 +36,6 @@
#include <wxEeschemaStruct.h>
#include <wxEeschemaStruct.h>


#include <general.h>
#include <general.h>
#include <protos.h>
#include <sch_bus_entry.h>
#include <sch_bus_entry.h>




Loading