Skip to content

Commit

Permalink
wip on event library
Browse files Browse the repository at this point in the history
  • Loading branch information
nicholatian committed Apr 17, 2021
1 parent 86ec29d commit 21983c5
Show file tree
Hide file tree
Showing 5 changed files with 106 additions and 0 deletions.
56 changes: 56 additions & 0 deletions evt/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
##############################################################################
## Hinterlib event facility ##
## ##
## Copyright © 2021 Aquefir ##
## Released under BSD-2-Clause. ##
##############################################################################

ifeq ($(strip $(AQ)),)
$(error "AQ was not found in your environment. You need to install the Slick Makefiles from github.com/aquefir/slick to continue.")
endif

include $(AQ)/lib/slick/base.mk

PROJECT := uni_futils

# put a ‘1’ for the desired target types to compile
SOFILE :=
AFILE := 1

# space-separated path list for #includes
# <system> includes
INCLUDES := include ../decl/include ../err/include ../himem/include \
../log/include
# "local" includes
INCLUDEL := src

# space-separated library name list
LIBS :=
LIBDIRS :=

# frameworks (macOS target only)
FWORKS :=

# ‘3P’ are in-tree 3rd-party dependencies
# 3PLIBDIR is the base directory
# 3PLIBS is the folder names in the base directory for each library
3PLIBDIR := 3rdparty
3PLIBS := tes

# sources
SFILES :=
CFILES := \
src/futils.c
CPPFILES :=
PUBHFILES := \
include/uni/futils.h
PRVHFILES :=

# test suite sources
TES_CFILES :=
TES_CPPFILES :=
TES_PUBHFILES :=
TES_PRVHFILES :=

# this defines all our usual targets
include $(AQ)/lib/slick/targets.mk
19 changes: 19 additions & 0 deletions evt/etc/BOILERPLATE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
This file contains the project’s copypastable boilerplate comment headers.

Boilerplate for C-like languages:

/****************************************************************************\
* Hinterlib event facility *
* *
* Copyright © 2021 Aquefir *
* Released under BSD-2-Clause. *
\****************************************************************************/

Hash-based boilerplate (Python, POSIX shell, Makefile):

##############################################################################
## Hinterlib event facility ##
## ##
## Copyright © 2021 Aquefir ##
## Released under BSD-2-Clause. ##
##############################################################################
13 changes: 13 additions & 0 deletions evt/include/uni/evt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/****************************************************************************\
* Hinterlib event facility *
* *
* Copyright © 2021 Aquefir *
* Released under BSD-2-Clause. *
\****************************************************************************/

#ifndef INC_API__UNI_EVT_H
#define INC_API__UNI_EVT_H

struct uni_evt;

#endif /* INC_API__UNI_EVT_H */
Empty file added evt/src/evt.c
Empty file.
18 changes: 18 additions & 0 deletions evt/src/evt.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
/****************************************************************************\
* Hinterlib event facility *
* *
* Copyright © 2021 Aquefir *
* Released under BSD-2-Clause. *
\****************************************************************************/

#ifndef INC__UNI_EVT_H
#define INC__UNI_EVT_H

struct uni_evt
{
#ifdef CFG_LINUX
int fd;
#endif /* CFG_LINUX */
};

#endif /* INC__UNI_EVT_H */

0 comments on commit 21983c5

Please sign in to comment.