2004-06-25 18:42:19 +00:00
|
|
|
// Modules.cs
|
|
|
|
//
|
|
|
|
// This program is free software; you can redistribute it and/or
|
|
|
|
// modify it under the terms of version 2 of the Lesser GNU General
|
|
|
|
// Public License as published by the Free Software Foundation.
|
|
|
|
//
|
|
|
|
// This program 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 program; if not, write to the
|
|
|
|
// Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
// Boston, MA 02111-1307, USA.
|
|
|
|
|
|
|
|
|
2002-07-05 20:22:21 +00:00
|
|
|
namespace Gnome
|
|
|
|
{
|
|
|
|
using System;
|
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2002-09-16 11:12:01 +00:00
|
|
|
public class Modules
|
2002-07-05 20:22:21 +00:00
|
|
|
{
|
2004-04-29 15:00:24 +00:00
|
|
|
[DllImport("gnome-2")]
|
2002-07-05 20:22:21 +00:00
|
|
|
static extern System.IntPtr libgnome_module_info_get ();
|
2004-04-29 15:00:24 +00:00
|
|
|
[DllImport("gnomeui-2")]
|
2002-07-05 20:22:21 +00:00
|
|
|
static extern System.IntPtr libgnomeui_module_info_get ();
|
|
|
|
|
|
|
|
public static ModuleInfo LibGnome {
|
2002-07-30 23:02:12 +00:00
|
|
|
get {
|
2005-07-07 16:11:24 +00:00
|
|
|
return new ModuleInfo (libgnome_module_info_get ());
|
2002-07-30 23:02:12 +00:00
|
|
|
}
|
2002-07-05 20:22:21 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
public static ModuleInfo UI {
|
2002-07-30 23:02:12 +00:00
|
|
|
get {
|
2005-07-07 16:11:24 +00:00
|
|
|
return new ModuleInfo (libgnomeui_module_info_get ());
|
2002-07-30 23:02:12 +00:00
|
|
|
}
|
2002-07-05 20:22:21 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|