1
0
Fork 0
mirror of https://github.com/albfan/miraclecast.git synced 2025-03-09 23:38:56 +00:00

demo/miracle-wfdctl: handle SIGINT to exit gracefully

This commit is contained in:
Derek Dai 2017-03-25 17:47:51 +08:00
parent a0d0c9bc8c
commit 57c4bbeae5
No known key found for this signature in database
GPG key ID: E109CC97553EF009
5 changed files with 153 additions and 30 deletions

8
demo/sigint.vapi Normal file
View file

@ -0,0 +1,8 @@
[CCode(cheader_filename="sigint.h")]
class Sigint
{
public delegate void Handler();
public static void add_watch(Handler handler);
public static void remove_watch();
}