kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

hooks.h (1228B)



      1 /*
      2  * Copyright (c) 2022 Joris Vink <joris@coders.se>
      3  *
      4  * Permission to use, copy, modify, and distribute this software for any
      5  * purpose with or without fee is hereby granted, provided that the above
      6  * copyright notice and this permission notice appear in all copies.
      7  *
      8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
      9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
     10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
     11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
     12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
     13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
     14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
     15  */
     16 
     17 #ifndef __H_HOOKS_H
     18 #define __H_HOOKS_H
     19 
     20 #define KORE_CONFIG_HOOK	"kore_parent_configure"
     21 #define KORE_TEARDOWN_HOOK	"kore_parent_teardown"
     22 #define KORE_DAEMONIZED_HOOK	"kore_parent_daemonized"
     23 
     24 void	kore_seccomp_hook(void);
     25 void	kore_worker_signal(int);
     26 void	kore_worker_teardown(void);
     27 void	kore_parent_teardown(void);
     28 void	kore_worker_configure(void);
     29 void	kore_parent_daemonized(void);
     30 void	kore_parent_configure(int, char **);
     31 
     32 #endif