Changeset 15654
- Timestamp:
- 05/10/12 22:21:25 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/pic.h
r15501 r15654 13 13 } 14 14 15 void checkpictimeout() 16 { 17 struct pic* node = pic; 18 time_t akttime = time(NULL); 19 20 while(node != NULL) 21 { 22 if(node->timeout != 0 && node->lastaccess + node->timeout < akttime) 23 delpic(node->name); 24 node = node->next; 25 } 26 } 27 15 28 struct pic* addpic(char *name, unsigned char* picbuf, int memfd, unsigned long width, unsigned long height, unsigned long rowbytes, int channels, int timeout, int del, struct pic* last) 16 29 { 17 30 debug(1000, "in"); 31 32 //chech if pic timed aut and can remove 33 checkpictimeout(); 34 18 35 struct pic *newnode = NULL, *prev = NULL, *node = pic; 19 36 … … 136 153 } 137 154 138 void checkpictimeout()139 {140 struct pic* node = pic;141 time_t akttime = time(NULL);142 143 while(node != NULL)144 {145 if(node->timeout != 0 && node->lastaccess + node->timeout < akttime)146 delpic(node->name);147 node = node->next;148 }149 }150 151 155 struct pic* getpic(char* name) 152 156 {
Note: See TracChangeset
for help on using the changeset viewer.