Commit df0cf7927249954f15e0aa85b02d21b990fa9af9

Authored by Stéphane Raimbault
1 parent 7a353920

Rename src to modbus

This time the change is definitive :)
ChangeLog deleted
Makefile.am
1 1 EXTRA_DIST = MIGRATION libmodbus.spec
2   -SUBDIRS = src tests
  2 +SUBDIRS = modbus tests
3 3  
4 4 pkgconfigdir = $(libdir)/pkgconfig
5 5 pkgconfig_DATA = modbus.pc
... ...
src/Makefile.am renamed to modbus/Makefile.am
src/modbus.c renamed to modbus/modbus.c
... ... @@ -60,8 +60,8 @@
60 60 #define UINT16_MAX 0xFFFF
61 61 #endif
62 62  
63   -#include "config.h"
64   -#include "modbus.h"
  63 +#include <config.h>
  64 +#include <modbus/modbus.h>
65 65  
66 66 #define UNKNOWN_ERROR_MSG "Not defined in modbus specification"
67 67  
... ...
src/modbus.h renamed to modbus/modbus.h
tests/Makefile.am
... ... @@ -10,7 +10,7 @@ noinst_PROGRAMS = \
10 10 bandwidth-master
11 11  
12 12 common_ldflags = \
13   - $(top_builddir)/src/libmodbus.la
  13 + $(top_builddir)/modbus/libmodbus.la
14 14  
15 15 random_test_slave_SOURCES = random-test-slave.c
16 16 random_test_slave_LDADD = $(common_ldflags)
... ... @@ -33,5 +33,5 @@ bandwidth_slave_many_up_LDADD = $(common_ldflags)
33 33 bandwidth_master_SOURCES = bandwidth-master.c
34 34 bandwidth_master_LDADD = $(common_ldflags)
35 35  
36   -INCLUDES = -I$(top_srcdir) -I$(top_srcdir)/src
  36 +INCLUDES = -I$(top_srcdir)
37 37 CLEANFILES = *~
... ...
tests/bandwidth-master.c
1 1 /*
2   - * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  2 + * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
3 3 *
4 4 * This program is free software: you can redistribute it and/or modify
5 5 * it under the terms of the GNU General Public License as published by
... ... @@ -22,7 +22,7 @@
22 22 #include <time.h>
23 23 #include <sys/time.h>
24 24  
25   -#include "modbus.h"
  25 +#include <modbus/modbus.h>
26 26  
27 27 /* Tests based on PI-MBUS-300 documentation */
28 28 #define SLAVE 0x11
... ...
tests/bandwidth-slave-many-up.c
1 1 /*
2   - * Copyright © 2009 Stéphane Raimbault <stephane.raimbault@gmail.com>
  2 + * Copyright © 2009-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
3 3 *
4 4 * This program is free software: you can redistribute it and/or modify
5 5 * it under the terms of the GNU General Public License as published by
... ... @@ -22,7 +22,7 @@
22 22 #include <errno.h>
23 23 #include <signal.h>
24 24  
25   -#include "modbus.h"
  25 +#include <modbus/modbus.h>
26 26  
27 27 #define SLAVE 0x11
28 28 #define NB_CONNECTION 5
... ...
tests/bandwidth-slave-one.c
1 1 /*
2   - * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  2 + * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
3 3 *
4 4 * This program is free software: you can redistribute it and/or modify
5 5 * it under the terms of the GNU General Public License as published by
... ... @@ -20,7 +20,7 @@
20 20 #include <string.h>
21 21 #include <stdlib.h>
22 22  
23   -#include "modbus.h"
  23 +#include <modbus/modbus.h>
24 24  
25 25 #define SLAVE 0x11
26 26  
... ...
tests/random-test-master.c
1 1 /*
2   - * Copyright © 2001-2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  2 + * Copyright © 2001-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
3 3 *
4 4 * This program is free software: you can redistribute it and/or modify
5 5 * it under the terms of the GNU General Public License as published by
... ... @@ -20,7 +20,7 @@
20 20 #include <string.h>
21 21 #include <stdlib.h>
22 22  
23   -#include "modbus.h"
  23 +#include <modbus/modbus.h>
24 24  
25 25 /* The goal of this program is to check all major functions of
26 26 libmodbus:
... ...
tests/random-test-slave.c
1 1 /*
2   - * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  2 + * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
3 3 *
4 4 * This program is free software: you can redistribute it and/or modify
5 5 * it under the terms of the GNU General Public License as published by
... ... @@ -19,7 +19,7 @@
19 19 #include <unistd.h>
20 20 #include <stdlib.h>
21 21  
22   -#include "modbus.h"
  22 +#include <modbus/modbus.h>
23 23  
24 24 #define SLAVE 0x11
25 25  
... ...
tests/unit-test-master.c
1 1 /*
2   - * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  2 + * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
3 3 *
4 4 * This program is free software: you can redistribute it and/or modify
5 5 * it under the terms of the GNU General Public License as published by
... ... @@ -20,7 +20,7 @@
20 20 #include <string.h>
21 21 #include <stdlib.h>
22 22  
23   -#include "modbus.h"
  23 +#include <modbus/modbus.h>
24 24 #include "unit-test.h"
25 25  
26 26 /* Tests based on PI-MBUS-300 documentation */
... ...
tests/unit-test-slave.c
1 1 /*
2   - * Copyright © 2008 Stéphane Raimbault <stephane.raimbault@gmail.com>
  2 + * Copyright © 2008-2010 Stéphane Raimbault <stephane.raimbault@gmail.com>
3 3 *
4 4 * This program is free software: you can redistribute it and/or modify
5 5 * it under the terms of the GNU General Public License as published by
... ... @@ -20,7 +20,7 @@
20 20 #include <string.h>
21 21 #include <stdlib.h>
22 22  
23   -#include "modbus.h"
  23 +#include <modbus/modbus.h>
24 24 #include "unit-test.h"
25 25  
26 26 int main(void)
... ...