Main Page | Directories | File List | File Members

hn-wm-memory.h

00001 /* 
00002  * This file is part of maemo-af-desktop
00003  *
00004  * Copyright (C) 2005, 2006 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  * version 2.1 as published by the Free Software Foundation.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
00020  * 02110-1301 USA
00021  *
00022  */
00023 
00028 #ifndef HAVE_HN_WM_MEMORY_H
00029 #define HAVE_HN_WM_MEMROY_H
00030 
00031 #include "hn-wm.h"
00032 
00033 gboolean 
00034 hn_wm_memory_get_limits (guint *pages_used,
00035              guint *pages_available);
00036 
00037 int 
00038 hn_wm_memory_kill_all_watched (gboolean only_kill_able_to_hibernate);
00039 
00040 /* Convenience function to get lowmem state */
00041 gboolean hn_wm_in_lowmem(void);
00042 
00043 void            
00044 hn_wm_memory_bgkill_func(gboolean is_on) ;
00045 
00046 void            
00047 hn_wm_memory_lowmem_func(gboolean is_on);
00048 
00049 void 
00050 hn_wm_memory_explain_lowmem (void);
00051 
00052 void 
00053 hn_wm_memory_connect_lowmem_explain(GtkWidget *widget);
00054 
00055 void 
00056 hn_wm_memory_update_lowmem_ui (gboolean lowmem);
00057 
00058 int
00059 hn_wm_memory_kill_lru (void);
00060 
00061 #endif

Generated on Thu Dec 21 11:26:51 2006 for maemo-af-desktop-documentation by  doxygen 1.4.2