blob: 8aa4da39e2b9e14c37314204c3c87f1aec86a8da [file] [log] [blame]
// Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHILL_GLIB_H_
#define SHILL_GLIB_H_
#include "shill/glib_interface.h"
namespace shill {
// A concrete implementation of the GLib interface.
class GLib : public GLibInterface {
public:
virtual guint ChildWatchAdd(GPid pid,
GChildWatchFunc function,
gpointer data);
virtual gboolean SourceRemove(guint tag);
virtual gboolean SpawnAsync(const gchar *working_directory,
gchar **argv,
gchar **envp,
GSpawnFlags flags,
GSpawnChildSetupFunc child_setup,
gpointer user_data,
GPid *child_pid,
GError **error);
virtual void SpawnClosePID(GPid pid);
};
} // namespace shill
#endif // SHILL_GLIB_H_