⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dsmcc-carousel.c

📁 Parses UK Profile 1.05/1.06 Object Carousel and saves files to disk (all stored under /tmp/cache at
💻 C
字号:
#include <stdlib.h>#include "dsmcc-receiver.h"#include "dsmcc-descriptor.h"#include "dsmcc-carousel.h"ObjCarousel::ObjCarousel(void) {}ObjCarousel::~ObjCarousel(void) {	struct stream *str, *strnext;	struct cache_module_data *cachep, *cachepnext;	struct descriptor *desc, *last;	/* Free gateway info */	if(gate != NULL) {	      if(gate->user_data_len > 0)		free(gate->user_data);	      if(gate->profile.type_id_len > 0)	        free(gate->profile.type_id);	      if(gate->profile.body.full.obj_loc.objkey_len>0)		free(gate->profile.body.full.obj_loc.objkey);	      if(gate->profile.body.full.dsm_conn.taps_count>0) {	       if(gate->profile.body.full.dsm_conn.tap.selector_len>0)		 free(gate->profile.body.full.dsm_conn.tap.selector_data);	      }	}	/* Free stream info */	str = streams;	while(str!=NULL) {	     strnext = str->next;	     free(str);	     str = strnext;	}	streams = NULL;	/* Free cache info */	cachep = cache;	while(cachep!=NULL) {	      cachepnext = cachep->next;	      if(cachep->data != NULL) { /* should be empty */		      free(cachep->data);	      }	      if(cachep->bstatus != NULL) {		      free(cachep->bstatus);	      }	      if(cachep->descriptors != NULL) { /* TODO badness */                desc = cachep->descriptors;                while(desc != NULL) {                  last = desc->next;                  FreeDescriptor(desc);                  desc = last;                }	      }	      free(cachep);	      cachep = cachepnext;	}	delete filecache;}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -