Archived
1
0
Fork 0

Moving some files and cleaning up.

This commit is contained in:
H Hautakoski 2010-09-08 19:53:15 +02:00 committed by Henrik Hautakoski
parent 8cafb25c42
commit 073c210814
16 changed files with 62 additions and 61 deletions

View file

@ -3,7 +3,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "arch/db.h"
#include "fs/notify.h"
#include "notify/notify.h"
/* only way to exit the application properly
when in main loop is by signal */

View file

@ -12,8 +12,8 @@
#include "common/debug.h"
#include "common/path.h"
#include "arch/db.h"
#include "fs/notify.h"
#include "fs/tree.h"
#include "notify/notify.h"
#include "notify/tree.h"
#include "indexer.h"
static char *stack[256];

View file

@ -1,4 +1,4 @@
/* fs/notify_event.c - notify event implementation
/* notify/event.c - notify event implementation
*
* (C) Copyright 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* (C) Copyright 2010 Fredric Nilsson <fredric@fiktivkod.org>
@ -12,7 +12,7 @@
#include <malloc.h>
#include <string.h>
#include "notify_event.h"
#include "event.h"
#include "../common/path.h"
#define dealloc_data(ev) \

View file

@ -1,4 +1,4 @@
/* fs/notify_event.h - event data structure and operation's for notify API
/* notify/event.h - event data structure and operation's for notify API
*
* (C) Copyright 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* (C) Copyright 2010 Fredric Nilsson <fredric@fiktivkod.org>
@ -9,9 +9,8 @@
* (at your option) any later version.
*/
#ifndef _NOTIFY_EVENT_H
#define _NOTIFY_EVENT_H
#ifndef __NOTIFY_EVENT_H
#define __NOTIFY_EVENT_H
#include <stdint.h>
@ -45,4 +44,4 @@ void notify_event_set_type(notify_event *event, uint8_t type);
const char* notify_event_typetostr(notify_event *event);
#endif /* _NOTIFY_EVENT_H */
#endif /* __NOTIFY_EVENT_H */

2
src/fs/notify_inotify.c → src/notify/inotify.c Executable file → Normal file
View file

@ -1,4 +1,4 @@
/* fs/notify_inotify.c - inotify implementation
/* notify/inotify.c - inotify implementation
*
* (C) Copyright 2010 Henrik Hautakoski <henrik.hautakoski@gmail.com>
* (C) Copyright 2010 Fredric Nilsson <fredric@unknown.org>

10
src/fs/notify.h → src/notify/notify.h Executable file → Normal file
View file

@ -1,4 +1,4 @@
/* fs/notify.h - filesystem notification API
/* notify/notify.h - filesystem notification API
*
* (C) Copyright 2010 Henrik Hautakoski <henrik@fiktivkod.org>
* (C) Copyright 2010 Fredric Nilsson <fredric@fiktivkod.org>
@ -9,11 +9,11 @@
* (at your option) any later version.
*/
#ifndef _FS_NOTIFY_H
#define _FS_NOTIFY_H
#ifndef __NOTIFY_NOTIFY_H
#define __NOTIFY_NOTIFY_H
/* notify event def's and operations */
#include "notify_event.h"
#include "event.h"
int notify_init();
@ -32,4 +32,4 @@ void notify_stat();
/* TODO: context-switch/threading should be implementation specific. */
int notify_is_ready();
#endif /* _FS_NOTIFY_H */
#endif /* __NOTIFY_NOTIFY_H */

View file

@ -1,4 +1,4 @@
/* src/fs/notify_queue.c
/* notify/queue.c
*
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
*

View file

@ -1,4 +1,4 @@
/* src/fs/notify_queue.c
/* notify/queue.h
*
* Copyright (C) 2010 Henrik Hautakoski <henrik@fiktivkod.org>
*
@ -11,8 +11,8 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#ifndef __FS_QUEUE_H
#define __FS_QUEUE_H
#ifndef __NOTIFY_QUEUE_H
#define __NOTIFY_QUEUE_H
#include <stddef.h>
@ -32,4 +32,4 @@ void queue_clear(queue_t *q);
void queue_destroy(queue_t *q);
#endif /* __FS_QUEUE_H */
#endif /* __NOTIFY_QUEUE_H */

View file

@ -1,4 +1,4 @@
/* fs/tree.c - Filesystem traversal
/* notify/tree.c - Filesystem traversal
*
* (C) Copyright 2010 Henrik Hautakoski <henrik@fiktivkod.org>
*

View file

@ -1,4 +1,4 @@
/* fs/tree.h - Filesystem traversal
/* notify/tree.h - Filesystem traversal
*
* (C) Copyright 2010 Henrik Hautakoski <henrik@fiktivkod.org>
*
@ -8,9 +8,8 @@
* (at your option) any later version.
*/
#ifndef _FS_TREE_H
#define _FS_TREE_H
#ifndef __NOTIFY_TREE_H
#define __NOTIFY_TREE_H
#define MAX_DEPTH 0x20
@ -40,4 +39,4 @@ struct entry* tree_cpy_ent(struct entry *ent);
struct entry* tree_next_ent(struct tree *tree);
#endif /* _FS_TREE_H */
#endif /* __NOTIFY_TREE_H */