From 0dd99544d086d1c2354954b6ae719ab5679f546f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Axel=20D=C3=B6rfler?= Date: Mon, 5 Mar 2007 18:22:40 +0000 Subject: [PATCH] Build fix for r20329 - the R5 version of BFS did not include a send_notification() prototype (and still doesn't include notify_listener(), which should be fixed at some point, too). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20337 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- .../kernel/file_systems/bfs/r5/Query.cpp | 18 ++++++++++-------- .../kernel/file_systems/bfs/r5/fsproto.h | 5 +++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/tests/add-ons/kernel/file_systems/bfs/r5/Query.cpp b/src/tests/add-ons/kernel/file_systems/bfs/r5/Query.cpp index c206137b19..06b9a29a04 100644 --- a/src/tests/add-ons/kernel/file_systems/bfs/r5/Query.cpp +++ b/src/tests/add-ons/kernel/file_systems/bfs/r5/Query.cpp @@ -1,12 +1,12 @@ /* Query - query parsing and evaluation -** -** Copyright 2001-2004, Axel Dörfler, axeld@pinc-software.de -** The pattern matching is roughly based on code originally written -** by J. Kercheval, and on code written by Kenneth Almquist, though -** it shares no code. -** -** This file may be used under the terms of the OpenBeOS License. -*/ + * + * The pattern matching is roughly based on code originally written + * by J. Kercheval, and on code written by Kenneth Almquist, though + * it shares no code. + * + * Copyright 2001-2007, Axel Dörfler, axeld@pinc-software.de. + * This file may be used under the terms of the MIT License. + */ #include "Query.h" @@ -18,6 +18,8 @@ #include "BPlusTree.h" #include "Index.h" +#include "fsproto.h" + #include #include #include diff --git a/src/tests/add-ons/kernel/file_systems/bfs/r5/fsproto.h b/src/tests/add-ons/kernel/file_systems/bfs/r5/fsproto.h index 6edaae5fcf..26ee10d1b4 100644 --- a/src/tests/add-ons/kernel/file_systems/bfs/r5/fsproto.h +++ b/src/tests/add-ons/kernel/file_systems/bfs/r5/fsproto.h @@ -234,6 +234,11 @@ extern _IMPEXP_KERNEL void free_path(char *p); extern _IMPEXP_KERNEL void notify_select_event(selectsync *sync, uint32 ref); extern _IMPEXP_KERNEL status_t is_vnode_removed(nspace_id nsid, vnode_id vnid); +extern _IMPEXP_KERNEL status_t send_notification(port_id port, long token, + ulong what, long op, nspace_id device, nspace_id toDevice, + vnode_id parentNode, vnode_id toParentNode, vnode_id node, + const char *name); + // The missing prototypes can be found in the fs_interface.h file. // That part of the VFS is still compatible with BeOS :)