pcshareMgr/src/control.c File Reference

control - keep state/control More...

#include <stdio.h>
#include <gtk/gtk.h>
#include <liberipc/eripc.h>
#include "logging.h"
#include "control.h"
#include "displayUpdate.h"
#include "view.h"

Go to the source code of this file.

Functions

shareMgr_tctrlInit (GtkWidget *topLevelWindow)
void ctrlDestroy (shareMgr_t *theShareMgr)


Detailed Description

control - keep state/control

Copyright (C) 2005-2008 iRex Technologies B.V. All rights reserved.

<File description>="">

Definition in file control.c.


Function Documentation

void ctrlDestroy ( shareMgr_t shMgr  ) 

clean up allocated memory

Parameters:
dlMgr reference downloadMgrdata
Returns:
-

Definition at line 61 of file control.c.

00062 {
00063     g_return_if_fail(theShareMgr != NULL);
00064 
00065     DL_WARNPRINTF("Clean up wat needs to be cleared");
00066 
00067     g_free(theShareMgr);
00068 }

shareMgr_t* ctrlInit ( GtkWidget *  topLevelWindow  ) 

Init download manager data : - init screen layout

  • allocate downloadMgr_t, for maintaining state

Parameters:
window reference to the top level window
Returns:
reference to downloadMgr_t structure, NULL in case of failure

Definition at line 44 of file control.c.

00045 {
00046     shareMgr_t *theShareMgr = NULL;
00047 
00048     // => only request a refresh on the background expose event
00049     display_update_increase_level(VIEW_WINDOW_EXPOSE_LEVEL);
00050 
00051     // create one theShareMgr struct and fill it with zeros
00052     theShareMgr = g_new0(shareMgr_t, 1);
00053     theShareMgr->topLevelWindow = topLevelWindow;
00054     theShareMgr->returnVal      = DL_OK;
00055 
00056     viewInit(topLevelWindow);
00057     viewSetText();
00058     return theShareMgr;
00059 }

Here is the call graph for this function:


Generated on Sun Dec 14 17:16:50 2008 by  doxygen 1.5.6