/* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ /* gdu-process.h * * Copyright (C) 2007 David Zeuthen * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public License * as published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * This library 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 * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA * 02111-1307, USA. */ #if !defined (__GDU_INSIDE_GDU_H) && !defined (GDU_COMPILATION) #error "Only can be included directly, this file may disappear or change contents." #endif #ifndef __GDU_PROCESS_H #define __GDU_PROCESS_H #include #include #include G_BEGIN_DECLS #define GDU_TYPE_PROCESS (gdu_process_get_type ()) #define GDU_PROCESS(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GDU_TYPE_PROCESS, GduProcess)) #define GDU_PROCESS_CLASS(k) (G_TYPE_CHECK_CLASS_CAST ((k), GDU_PROCESS, GduProcessClass)) #define GDU_IS_PROCESS(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GDU_TYPE_PROCESS)) #define GDU_IS_PROCESS_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GDU_TYPE_PROCESS)) #define GDU_PROCESS_GET_CLASS(k) (G_TYPE_INSTANCE_GET_CLASS ((k), GDU_TYPE_PROCESS, GduProcessClass)) typedef struct _GduProcessClass GduProcessClass; typedef struct _GduProcessPrivate GduProcessPrivate; struct _GduProcess { GObject parent; /* private */ GduProcessPrivate *priv; }; struct _GduProcessClass { GObjectClass parent_class; }; GType gdu_process_get_type (void); pid_t gdu_process_get_id (GduProcess *process); uid_t gdu_process_get_owner (GduProcess *process); const char *gdu_process_get_command_line (GduProcess *process); GAppInfo *gdu_process_get_app_info (GduProcess *process); G_END_DECLS #endif /* __GDU_PROCESS_H */