Update
This commit is contained in:
8
c_libs/.idea/.gitignore
generated
vendored
Normal file
8
c_libs/.idea/.gitignore
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
# Default ignored files
|
||||
/shelf/
|
||||
/workspace.xml
|
||||
# Editor-based HTTP Client requests
|
||||
/httpRequests/
|
||||
# Datasource local storage ignored files
|
||||
/dataSources/
|
||||
/dataSources.local.xml
|
||||
2
c_libs/.idea/c_libs.iml
generated
Normal file
2
c_libs/.idea/c_libs.iml
generated
Normal file
@@ -0,0 +1,2 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<module classpath="CMake" type="CPP_MODULE" version="4" />
|
||||
4
c_libs/.idea/misc.xml
generated
Normal file
4
c_libs/.idea/misc.xml
generated
Normal file
@@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="CMakeWorkspace" PROJECT_DIR="$PROJECT_DIR$" />
|
||||
</project>
|
||||
8
c_libs/.idea/modules.xml
generated
Normal file
8
c_libs/.idea/modules.xml
generated
Normal file
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="ProjectModuleManager">
|
||||
<modules>
|
||||
<module fileurl="file://$PROJECT_DIR$/.idea/c_libs.iml" filepath="$PROJECT_DIR$/.idea/c_libs.iml" />
|
||||
</modules>
|
||||
</component>
|
||||
</project>
|
||||
6
c_libs/.idea/vcs.xml
generated
Normal file
6
c_libs/.idea/vcs.xml
generated
Normal file
@@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project version="4">
|
||||
<component name="VcsDirectoryMappings">
|
||||
<mapping directory="$PROJECT_DIR$/.." vcs="Git" />
|
||||
</component>
|
||||
</project>
|
||||
9
c_libs/CMakeLists.txt
Normal file
9
c_libs/CMakeLists.txt
Normal file
@@ -0,0 +1,9 @@
|
||||
cmake_minimum_required(VERSION 3.25)
|
||||
project(c_libs C)
|
||||
|
||||
set(CMAKE_C_STANDARD 11)
|
||||
|
||||
include_directories(.)
|
||||
|
||||
add_executable(c_libs
|
||||
notification.h notification.hpp notification.cpp cnotification.cpp)
|
||||
0
c_libs/cnotification.cpp
Normal file
0
c_libs/cnotification.cpp
Normal file
5
c_libs/notification.cpp
Normal file
5
c_libs/notification.cpp
Normal file
@@ -0,0 +1,5 @@
|
||||
#include "notification.hpp"
|
||||
|
||||
void Notification::buildNotification(void) {
|
||||
|
||||
}
|
||||
12
c_libs/notification.h
Normal file
12
c_libs/notification.h
Normal file
@@ -0,0 +1,12 @@
|
||||
#ifndef NOTIFICATION_H
|
||||
#define NOTIFICATION_H
|
||||
#include <stdio.h>
|
||||
|
||||
typedef struct Notification {
|
||||
FILE *icon;
|
||||
char title[16];
|
||||
char message[];
|
||||
} Notification;
|
||||
|
||||
int buildNotification(char title[], char message[], FILE *icon);
|
||||
#endif
|
||||
9
c_libs/notification.hpp
Normal file
9
c_libs/notification.hpp
Normal file
@@ -0,0 +1,9 @@
|
||||
class Notification {
|
||||
public:
|
||||
FILE icon;
|
||||
char title[16];
|
||||
char message[];
|
||||
|
||||
Notification(FILE _icon, char _title[16], char _message[]):icon(_icon)title(_title){}
|
||||
void buildNotification();
|
||||
};
|
||||
Reference in New Issue
Block a user