Renamed 'os_info' to 'sys_info'
This commit is contained in:
parent
e9b8368830
commit
acf771ed1d
7 changed files with 17 additions and 17 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
|
@ -7,5 +7,5 @@ help.o
|
|||
logo.o
|
||||
sql_test.o
|
||||
gtk_test.o
|
||||
os_info.o
|
||||
sys_info.o
|
||||
netbenixCMD
|
||||
|
|
@ -11,7 +11,8 @@ Version: *0.1.0*
|
|||
## Features:
|
||||
- A help page (OMG!!!)
|
||||
- A little GTK Test
|
||||
- Can detect if you're using linux or Windows and tell the Architecture you're running on
|
||||
- Can detect if you're using linux or not and tell the Architecture you're running on
|
||||
- Can give you a bit of information about your CPU (but just a little bit)
|
||||
|
||||
## Building:
|
||||
Install packages: make, gtk3, libgtk-3-dev, gcc, mysql
|
||||
|
|
@ -29,4 +30,4 @@ After building use ```./netbenixCMD <argument>``` to start the program
|
|||
- ```--help``` => Displays all arguments
|
||||
- ```--gtk-test``` => Opens the GTK Test Window
|
||||
- ```--sql-test``` => Makes a test connection to a mysql server
|
||||
- ```--os-info``` => Outputs your OS Information
|
||||
- ```--sys-info``` => Gives you information about your system
|
||||
|
|
@ -9,5 +9,5 @@ void outputHelp(){
|
|||
printf("--help : this help page\n");
|
||||
printf("--gtk-test : opens the gtk test\n");
|
||||
printf("--sql-test : make a test connection to a mysql server\n");
|
||||
printf("--os-info : shows informations about your os\n");
|
||||
printf("--sys-info : shows informations about your system\n");
|
||||
}
|
||||
13
main.c
13
main.c
|
|
@ -5,14 +5,13 @@
|
|||
#include <gdk/gdk.h>
|
||||
#include <gdk/gdkconfig.h>
|
||||
#include <gtk/gtk.h>
|
||||
#include "commands/gtk_test.h"
|
||||
|
||||
#include "commands/help.h"
|
||||
#include "commands/gtk_test.h"
|
||||
#include "commands/sql_test.h"
|
||||
#include "etc/logo.h"
|
||||
#include "utils/logger.h"
|
||||
#include "utils/os_info.h"
|
||||
#include "commands/help.h"
|
||||
|
||||
#include "commands/sql_test.h"
|
||||
#include "utils/sys_info.h"
|
||||
|
||||
|
||||
#define VERSION "0.1.0"
|
||||
|
|
@ -46,8 +45,8 @@ int main(int argc, char *argv[]){
|
|||
} else if (!strcmp(argv[1], "--gtk-test")){
|
||||
logger("Stating GTK Test");
|
||||
createGTKTestWindow();
|
||||
} else if (!strcmp(argv[1], "--os-info")){
|
||||
logger("Showing OS Information");
|
||||
} else if (!strcmp(argv[1], "--sys-info")){
|
||||
logger("Showing System Information");
|
||||
print_Specs();
|
||||
} else if (!strcmp(argv[1], "--sql-test")){
|
||||
logger("Starting SQL Test");
|
||||
|
|
|
|||
6
makefile
6
makefile
|
|
@ -2,7 +2,7 @@ CC= gcc
|
|||
ARGS= -export-dynamic -ansi -std=gnu99
|
||||
CFLAGS= $(shell pkg-config --cflags gtk+-3.0) -I/usr/include/mysql
|
||||
LDLIBS= $(shell pkg-config --libs gtk+-3.0) -L/usr/lib/mysql -lmysqlclient
|
||||
OBJ= main.o logo.o logger.o help.o os_info.o gtk_test.o sql_test.o
|
||||
OBJ= main.o logo.o logger.o help.o sys_info.o gtk_test.o sql_test.o
|
||||
|
||||
netbenixCMD: $(OBJ)
|
||||
$(CC) $(CFLAGS) $(ARGS) -o netbenixCMD $(OBJ) $(LDLIBS)
|
||||
|
|
@ -14,8 +14,8 @@ logger.o: utils/logger.c
|
|||
$(CC) $(CFLAGS) -c utils/logger.c
|
||||
help.o: commands/help.c
|
||||
$(CC) $(CFLAGS) -c commands/help.c
|
||||
os_info.o: utils/os_info.c
|
||||
$(CC) $(CFLAGS) $(ARGS) -c utils/os_info.c
|
||||
sys_info.o: utils/sys_info.c
|
||||
$(CC) $(CFLAGS) $(ARGS) -c utils/sys_info.c
|
||||
gtk_test.o: commands/gtk_test.c
|
||||
$(CC) $(CFLAGS) -c commands/gtk_test.c
|
||||
sql_test.o: commands/sql_test.c
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
#include <string.h>
|
||||
#include <time.h>
|
||||
|
||||
#include "os_info.h"
|
||||
#include "sys_info.h"
|
||||
#include "logger.h"
|
||||
#include <cpuid.h>
|
||||
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
#ifndef _OS_INFO_H_
|
||||
#define _OS_INFO_H_
|
||||
#ifndef _SYS_INFO_H_
|
||||
#define _SYS_INFO_H_
|
||||
|
||||
static inline void native_cpuid(unsigned int *eax, unsigned int *ebx, unsigned int *ecx, unsigned int *edx);
|
||||
unsigned int getCPUStepping();
|
||||
Reference in a new issue