da8305456c
* NEW: Rename the PathWatch class to Watch. * NEW: Generalise the events raised by the class for future portability. * NEW: Add static properties Name, IsDir, Unmount and Cookie and remove the corresponding event handler arguments. * NEW: Do not automatically reference a Watch anymore to keep it sane. * BUG: Automatic detection of watch events works now (#6115). * BUG: Invalidate Watch objects when the kernel tells us to. * BUG: Don't enter an infinite loop if some event bits are not recognised. * OPT: Use hash tables to improve lookups. git-svn-id: svn://localhost/gambas/trunk@6147 867c0c6c-44f3-4631-809d-bfa615b0a4ec
43 lines
1 KiB
C
43 lines
1 KiB
C
/*
|
|
* main.c - gb.inotify glue
|
|
*
|
|
* Copyright (C) 2013, 2014 Tobias Boege <tobias@gambas-buch.de>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 1, or (at your option)
|
|
* any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program; if not, write to the Free Software
|
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
|
|
* MA 02110-1301, USA.
|
|
*/
|
|
|
|
#define __MAIN_C
|
|
|
|
#include "c_watch.h"
|
|
#include "main.h"
|
|
|
|
GB_INTERFACE GB EXPORT;
|
|
|
|
GB_DESC *GB_CLASSES[] EXPORT = {
|
|
CWatch,
|
|
CWatchEvents,
|
|
|
|
NULL
|
|
};
|
|
|
|
int EXPORT GB_INIT()
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
void EXPORT GB_EXIT()
|
|
{
|
|
}
|