1d012387afef0ba02185ebe27bc6bb15551912e92Havoc Pennington/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */ 21d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen/* dir-watch.h Watch directories 31d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * 41d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * Copyright (C) 2005 Red Hat, Inc. 51d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * 61d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * Licensed under the Academic Free License version 2.1 71d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * 81d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * This program is free software; you can redistribute it and/or modify 91d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * it under the terms of the GNU General Public License as published by 101d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * the Free Software Foundation; either version 2 of the License, or 111d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * (at your option) any later version. 121d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * 131d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * This program is distributed in the hope that it will be useful, 141d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * but WITHOUT ANY WARRANTY; without even the implied warranty of 151d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 161d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * GNU General Public License for more details. 171d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * 181d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * You should have received a copy of the GNU General Public License 191d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * along with this program; if not, write to the Free Software 20dc33f4f7749ed303374ebdf00e48ea8a471afd25Tobias Mueller * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 211d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen * 221d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen */ 231d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen 24fe1f793a4f8296fb00d409a4a52b12ed7526caacJohn (J#include "bus.h" 25fe1f793a4f8296fb00d409a4a52b12ed7526caacJohn (J 261d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen#ifndef DIR_WATCH_H 271d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen#define DIR_WATCH_H 281d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen 298a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters/** 308a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters * Update the set of directories to monitor for changes. The 318a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters * operating-system-specific implementation of this function should 328a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters * avoid creating a window where a directory in both the 338a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters * old and new set isn't monitored. 348a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters * 358a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters * @param context The bus context 368a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters * @param dirs List of strings which are directory paths 378a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Walters */ 388a9880ffd2b81df38bb0e3492bda7a9636ac0280Colin Waltersvoid bus_set_watched_dirs (BusContext *context, DBusList **dirs); 391d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen 401d19fc62e9034cc5700c0903f68787a84f485315David Zeuthen#endif /* DIR_WATCH_H */ 41