From f5f8eb0fef0a1f12642e52aff376355de258da5d Mon Sep 17 00:00:00 2001 From: karthikmv Date: Sun, 2 Oct 2022 21:00:24 +0530 Subject: [PATCH] changed dir structure --- iPDC/Makefile | 16 +--------------- iPDC/{images => assets}/PSLab.PNG | Bin iPDC/{ => assets}/green.png | Bin iPDC/{images => assets}/iPDC.desktop | 0 iPDC/{ => assets}/iPDC.glade | 0 iPDC/{ => assets}/iPDC.ui | 0 iPDC/{ => assets}/iPDC.xml | 0 iPDC/{images => assets}/ipdcLogo.png | Bin iPDC/{images => assets}/ipdcLogo1.png | Bin iPDC/{images => assets}/logo.png | Bin iPDC/{ => assets}/red.png | Bin iPDC/{ => assets}/utility_tools.ui | 0 iPDC/{ => inc}/Attack_detect.h | 0 iPDC/{ => inc}/align_sort.h | 0 iPDC/{ => inc}/attack_detection.h | 0 iPDC/{ => inc}/connections.h | 0 iPDC/{ => inc}/dallocate.h | 0 iPDC/{ => inc}/data_vis.h | 0 iPDC/{ => inc}/global.h | 0 iPDC/{ => inc}/ipdcGui.h | 0 iPDC/{ => inc}/map_vis.h | 0 iPDC/{ => inc}/new_pmu_or_pdc.h | 0 iPDC/{ => inc}/parser.h | 0 iPDC/{ => inc}/recreate.h | 0 iPDC/{ => inc}/utility_tools.h | 0 iPDC/{ => src}/Attack_detect.c | 0 iPDC/{ => src}/align_sort.c | 0 iPDC/{ => src}/attack_detection.c | 0 iPDC/{ => src}/connections.c | 0 iPDC/{ => src}/dallocate.c | 0 iPDC/{ => src}/data_vis.c | 0 iPDC/{ => src}/ipdc.c | 2 +- iPDC/{ => src}/ipdcGui.c | 0 iPDC/{ => src}/map_vis.c | 0 iPDC/{ => src}/new_pmu_or_pdc.c | 0 iPDC/{ => src}/parser.c | 0 iPDC/{ => src}/recreate.c | 0 iPDC/{ => src}/utility_tools.c | 2 +- iPDC/utility_tools.ui~ | 5 ----- 39 files changed, 3 insertions(+), 22 deletions(-) rename iPDC/{images => assets}/PSLab.PNG (100%) rename iPDC/{ => assets}/green.png (100%) rename iPDC/{images => assets}/iPDC.desktop (100%) rename iPDC/{ => assets}/iPDC.glade (100%) rename iPDC/{ => assets}/iPDC.ui (100%) rename iPDC/{ => assets}/iPDC.xml (100%) rename iPDC/{images => assets}/ipdcLogo.png (100%) rename iPDC/{images => assets}/ipdcLogo1.png (100%) rename iPDC/{images => assets}/logo.png (100%) rename iPDC/{ => assets}/red.png (100%) rename iPDC/{ => assets}/utility_tools.ui (100%) rename iPDC/{ => inc}/Attack_detect.h (100%) rename iPDC/{ => inc}/align_sort.h (100%) rename iPDC/{ => inc}/attack_detection.h (100%) rename iPDC/{ => inc}/connections.h (100%) rename iPDC/{ => inc}/dallocate.h (100%) rename iPDC/{ => inc}/data_vis.h (100%) rename iPDC/{ => inc}/global.h (100%) rename iPDC/{ => inc}/ipdcGui.h (100%) rename iPDC/{ => inc}/map_vis.h (100%) rename iPDC/{ => inc}/new_pmu_or_pdc.h (100%) rename iPDC/{ => inc}/parser.h (100%) rename iPDC/{ => inc}/recreate.h (100%) rename iPDC/{ => inc}/utility_tools.h (100%) rename iPDC/{ => src}/Attack_detect.c (100%) rename iPDC/{ => src}/align_sort.c (100%) rename iPDC/{ => src}/attack_detection.c (100%) rename iPDC/{ => src}/connections.c (100%) rename iPDC/{ => src}/dallocate.c (100%) rename iPDC/{ => src}/data_vis.c (100%) rename iPDC/{ => src}/ipdc.c (99%) rename iPDC/{ => src}/ipdcGui.c (100%) rename iPDC/{ => src}/map_vis.c (100%) rename iPDC/{ => src}/new_pmu_or_pdc.c (100%) rename iPDC/{ => src}/parser.c (100%) rename iPDC/{ => src}/recreate.c (100%) rename iPDC/{ => src}/utility_tools.c (98%) delete mode 100644 iPDC/utility_tools.ui~ diff --git a/iPDC/Makefile b/iPDC/Makefile index d388060..5992cd9 100755 --- a/iPDC/Makefile +++ b/iPDC/Makefile @@ -47,21 +47,7 @@ FILE6 = iPDC.desktop CC = gcc LIBS = -lpthread LDLIBS=`pkg-config --cflags --libs gtk+-3.0 osmgpsmap-1.0` -CFLAGS=-g -fcommon `pkg-config --cflags --libs gtk+-3.0 osmgpsmap-1.0` - -SOURCES = \ - ipdc.c \ - recreate.c recreate.h \ - connections.c connections.h \ - new_pmu_or_pdc.c new_pmu_or_pdc.h \ - parser.c parser.h \ - dallocate.c dallocate.h \ - align_sort.c align_sort.h \ - ipdcGui.c ipdcGui.h \ - attack_detection.c attack_detection.h \ - data_vis.c data_vis.h \ - utility_tools.c utility_tools.h \ - Attack_detect.c Attack_detect.h +CFLAGS=-g -I./inc -fcommon `pkg-config --cflags --libs gtk+-3.0 osmgpsmap-1.0` OBJECTS = ipdc.c recreate.o connections.o new_pmu_or_pdc.o parser.o dallocate.o align_sort.o ipdcGui.o attack_detection.o data_vis.o utility_tools.o Attack_detect.o diff --git a/iPDC/images/PSLab.PNG b/iPDC/assets/PSLab.PNG similarity index 100% rename from iPDC/images/PSLab.PNG rename to iPDC/assets/PSLab.PNG diff --git a/iPDC/green.png b/iPDC/assets/green.png similarity index 100% rename from iPDC/green.png rename to iPDC/assets/green.png diff --git a/iPDC/images/iPDC.desktop b/iPDC/assets/iPDC.desktop similarity index 100% rename from iPDC/images/iPDC.desktop rename to iPDC/assets/iPDC.desktop diff --git a/iPDC/iPDC.glade b/iPDC/assets/iPDC.glade similarity index 100% rename from iPDC/iPDC.glade rename to iPDC/assets/iPDC.glade diff --git a/iPDC/iPDC.ui b/iPDC/assets/iPDC.ui similarity index 100% rename from iPDC/iPDC.ui rename to iPDC/assets/iPDC.ui diff --git a/iPDC/iPDC.xml b/iPDC/assets/iPDC.xml similarity index 100% rename from iPDC/iPDC.xml rename to iPDC/assets/iPDC.xml diff --git a/iPDC/images/ipdcLogo.png b/iPDC/assets/ipdcLogo.png similarity index 100% rename from iPDC/images/ipdcLogo.png rename to iPDC/assets/ipdcLogo.png diff --git a/iPDC/images/ipdcLogo1.png b/iPDC/assets/ipdcLogo1.png similarity index 100% rename from iPDC/images/ipdcLogo1.png rename to iPDC/assets/ipdcLogo1.png diff --git a/iPDC/images/logo.png b/iPDC/assets/logo.png similarity index 100% rename from iPDC/images/logo.png rename to iPDC/assets/logo.png diff --git a/iPDC/red.png b/iPDC/assets/red.png similarity index 100% rename from iPDC/red.png rename to iPDC/assets/red.png diff --git a/iPDC/utility_tools.ui b/iPDC/assets/utility_tools.ui similarity index 100% rename from iPDC/utility_tools.ui rename to iPDC/assets/utility_tools.ui diff --git a/iPDC/Attack_detect.h b/iPDC/inc/Attack_detect.h similarity index 100% rename from iPDC/Attack_detect.h rename to iPDC/inc/Attack_detect.h diff --git a/iPDC/align_sort.h b/iPDC/inc/align_sort.h similarity index 100% rename from iPDC/align_sort.h rename to iPDC/inc/align_sort.h diff --git a/iPDC/attack_detection.h b/iPDC/inc/attack_detection.h similarity index 100% rename from iPDC/attack_detection.h rename to iPDC/inc/attack_detection.h diff --git a/iPDC/connections.h b/iPDC/inc/connections.h similarity index 100% rename from iPDC/connections.h rename to iPDC/inc/connections.h diff --git a/iPDC/dallocate.h b/iPDC/inc/dallocate.h similarity index 100% rename from iPDC/dallocate.h rename to iPDC/inc/dallocate.h diff --git a/iPDC/data_vis.h b/iPDC/inc/data_vis.h similarity index 100% rename from iPDC/data_vis.h rename to iPDC/inc/data_vis.h diff --git a/iPDC/global.h b/iPDC/inc/global.h similarity index 100% rename from iPDC/global.h rename to iPDC/inc/global.h diff --git a/iPDC/ipdcGui.h b/iPDC/inc/ipdcGui.h similarity index 100% rename from iPDC/ipdcGui.h rename to iPDC/inc/ipdcGui.h diff --git a/iPDC/map_vis.h b/iPDC/inc/map_vis.h similarity index 100% rename from iPDC/map_vis.h rename to iPDC/inc/map_vis.h diff --git a/iPDC/new_pmu_or_pdc.h b/iPDC/inc/new_pmu_or_pdc.h similarity index 100% rename from iPDC/new_pmu_or_pdc.h rename to iPDC/inc/new_pmu_or_pdc.h diff --git a/iPDC/parser.h b/iPDC/inc/parser.h similarity index 100% rename from iPDC/parser.h rename to iPDC/inc/parser.h diff --git a/iPDC/recreate.h b/iPDC/inc/recreate.h similarity index 100% rename from iPDC/recreate.h rename to iPDC/inc/recreate.h diff --git a/iPDC/utility_tools.h b/iPDC/inc/utility_tools.h similarity index 100% rename from iPDC/utility_tools.h rename to iPDC/inc/utility_tools.h diff --git a/iPDC/Attack_detect.c b/iPDC/src/Attack_detect.c similarity index 100% rename from iPDC/Attack_detect.c rename to iPDC/src/Attack_detect.c diff --git a/iPDC/align_sort.c b/iPDC/src/align_sort.c similarity index 100% rename from iPDC/align_sort.c rename to iPDC/src/align_sort.c diff --git a/iPDC/attack_detection.c b/iPDC/src/attack_detection.c similarity index 100% rename from iPDC/attack_detection.c rename to iPDC/src/attack_detection.c diff --git a/iPDC/connections.c b/iPDC/src/connections.c similarity index 100% rename from iPDC/connections.c rename to iPDC/src/connections.c diff --git a/iPDC/dallocate.c b/iPDC/src/dallocate.c similarity index 100% rename from iPDC/dallocate.c rename to iPDC/src/dallocate.c diff --git a/iPDC/data_vis.c b/iPDC/src/data_vis.c similarity index 100% rename from iPDC/data_vis.c rename to iPDC/src/data_vis.c diff --git a/iPDC/ipdc.c b/iPDC/src/ipdc.c similarity index 99% rename from iPDC/ipdc.c rename to iPDC/src/ipdc.c index 75bf1d0..76ee30d 100755 --- a/iPDC/ipdc.c +++ b/iPDC/src/ipdc.c @@ -50,7 +50,7 @@ #include "utility_tools.h" /* Common fixed path for storage of few common files */ -#define UI_fILE "./iPDC.ui" +#define UI_fILE "../assets/iPDC.ui" //#define UI_fILE "/usr/local/share/iPDC/iPDC.xml" diff --git a/iPDC/ipdcGui.c b/iPDC/src/ipdcGui.c similarity index 100% rename from iPDC/ipdcGui.c rename to iPDC/src/ipdcGui.c diff --git a/iPDC/map_vis.c b/iPDC/src/map_vis.c similarity index 100% rename from iPDC/map_vis.c rename to iPDC/src/map_vis.c diff --git a/iPDC/new_pmu_or_pdc.c b/iPDC/src/new_pmu_or_pdc.c similarity index 100% rename from iPDC/new_pmu_or_pdc.c rename to iPDC/src/new_pmu_or_pdc.c diff --git a/iPDC/parser.c b/iPDC/src/parser.c similarity index 100% rename from iPDC/parser.c rename to iPDC/src/parser.c diff --git a/iPDC/recreate.c b/iPDC/src/recreate.c similarity index 100% rename from iPDC/recreate.c rename to iPDC/src/recreate.c diff --git a/iPDC/utility_tools.c b/iPDC/src/utility_tools.c similarity index 98% rename from iPDC/utility_tools.c rename to iPDC/src/utility_tools.c index 153bc1d..e80b16e 100644 --- a/iPDC/utility_tools.c +++ b/iPDC/src/utility_tools.c @@ -4,7 +4,7 @@ #include "parser.h" #include "Attack_detect.h" -#define UI_fILE "./utility_tools.ui" +#define UI_fILE "../assets/utility_tools.ui" diff --git a/iPDC/utility_tools.ui~ b/iPDC/utility_tools.ui~ deleted file mode 100644 index 6b8e689..0000000 --- a/iPDC/utility_tools.ui~ +++ /dev/null @@ -1,5 +0,0 @@ - - - - -