hn-wm-memory.h

00001 /*
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2005 Nokia Corporation.
00005  *
00006  * Contact: Karoliina Salminen <karoliina.t.salminen@nokia.com>
00007  *
00008  * This library is free software; you can redistribute it and/or
00009  * modify it under the terms of the GNU Lesser General Public License
00010  * as published by the Free Software Foundation; either version 2.1 of
00011  * the License, or (at your option) any later version.
00012  *
00013  * This library is distributed in the hope that it will be useful, but
00014  * WITHOUT ANY WARRANTY; without even the implied warranty of
00015  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00016  * Lesser General Public License for more details.
00017  *
00018  * You should have received a copy of the GNU Lesser General Public
00019  * License along with this library; if not, write to the Free Software
00020  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00021  * 02110-1301 USA
00022  *
00023  */
00024 
00029 #ifndef HAVE_HN_WM_MEMORY_H
00030 #define HAVE_HN_WM_MEMROY_H
00031 
00032 #include "hn-wm.h"
00033 
00034 gboolean 
00035 hn_wm_memory_get_limits (guint *pages_used,
00036              guint *pages_available);
00037 
00038 int 
00039 hn_wm_memory_kill_all_watched (gboolean only_kill_able_to_hibernate);
00040 
00041 void        
00042 hn_wm_shutdown_func(void);
00043 
00044 /* Convenience function to get lowmem state */
00045 gboolean hn_wm_in_lowmem(void);
00046 
00047 void            
00048 hn_wm_memory_bgkill_func(gboolean is_on) ;
00049 
00050 void            
00051 hn_wm_memory_lowmem_func(gboolean is_on);
00052 
00053 void 
00054 hn_wm_memory_explain_lowmem (void);
00055 
00056 void 
00057 hn_wm_memory_connect_lowmem_explain(GtkWidget *widget);
00058 
00059 void 
00060 hn_wm_memory_update_lowmem_ui (gboolean lowmem);
00061 
00062 int
00063 hn_wm_memory_kill_lru (void);
00064 
00065 #endif

Generated on Fri Jun 9 16:23:08 2006 for maemo-af-desktop-documentation by  doxygen 1.4.6