wvdbusserver: implement NameHasOwner request.
[wvstreams.git] / include / wvprociter.h
blob90a49ce351b722f267bea40589f38b33afa47ff8
1 /* -*- Mode: C++ -*-
2 * Worldvisions Weaver Software:
3 * Copyright (C) 1997-2002 Net Integration Technologies, Inc.
5 * Process iterator. Iterates through the running processes.
7 */
9 #ifndef __WVPROCITER_H
10 #define __WVPROCITER_H
12 #include "wvdiriter.h"
13 #include "wvstringlist.h"
15 struct WvProcEnt
17 pid_t pid;
18 WvString exe;
19 WvStringList cmdline;
22 class WvProcIter
24 private:
25 WvDirIter dir_iter;
26 WvProcEnt proc_ent;
28 public:
29 WvProcIter();
30 ~WvProcIter();
32 bool isok() const;
33 void rewind();
34 bool next();
36 const WvProcEnt *ptr() const { return &proc_ent; }
37 WvIterStuff(const WvProcEnt);
40 bool wvkillall(WvStringParm basename, int sig);
42 #endif