예제 #1
0
static void
dispose (GObject *object)
{
	NMDeviceOlpcMesh *self = NM_DEVICE_OLPC_MESH (object);
	NMDeviceOlpcMeshPrivate *priv = NM_DEVICE_OLPC_MESH_GET_PRIVATE (self);
	NMManager *manager;

	if (priv->dispose_has_run) {
		G_OBJECT_CLASS (nm_device_olpc_mesh_parent_class)->dispose (object);
		return;
	}
	priv->dispose_has_run = TRUE;

	if (priv->wifi_data)
		wifi_utils_deinit (priv->wifi_data);

	device_cleanup (self);

	manager = nm_manager_get ();
	if (priv->device_added_id)
		g_signal_handler_disconnect (manager, priv->device_added_id);
	g_object_unref (manager);

	G_OBJECT_CLASS (nm_device_olpc_mesh_parent_class)->dispose (object);
}
예제 #2
0
 void cleanup()
 {
   device_cleanup();
   alignedFree(g_pixels); 
   g_pixels = nullptr;
   g_width = -1;
   g_height = -1;
 }
예제 #3
0
 TutorialApplication::~TutorialApplication()
 {
   g_ispc_scene = nullptr;
   device_cleanup();
   alignedFree(pixels);
   pixels = nullptr;
   width = 0;
   height = 0;
   alignedFree(g_stats);
   g_stats = nullptr;
 }
예제 #4
0
extern "C" void run_cleanup(uint32_t         in_BufferCount,
                            void**           in_ppBufferPointers,
                            uint64_t*        in_pBufferLengths,
                            void*            in_pMiscData,
                            uint16_t         in_MiscDataLength,
                            void*            in_pReturnValue,
                            uint16_t         in_ReturnValueLength)
{
    device_cleanup();
    if (g_ispc_scene) delete g_ispc_scene;
    g_ispc_scene = nullptr;
}
예제 #5
0
 void cleanup()
 {
   device_cleanup();
   alignedFree(g_pixels); 
   g_pixels = NULL;
 }
예제 #6
0
파일: hpmud.c 프로젝트: rfabbri/hplip
static void __attribute__ ((destructor)) mud_exit(void)
{
   DBG("[%d] hpmud_exit()\n", getpid());
   device_cleanup(msp);
}
예제 #7
0
static void
real_take_down (NMDevice *dev)
{
	device_cleanup (NM_DEVICE_OLPC_MESH (dev));
}
예제 #8
0
void kernelConnect_exit(void) {
    syscall_cleanup();
    device_cleanup();
    //test_cleanup(thread);
}
예제 #9
0
 void cleanup()
 {
   device_cleanup();
   alignedFree(g_pixels); 
   g_pixels = nullptr;
 }