Changeset 23702
- Timestamp:
- 09/13/13 08:43:12 (10 years ago)
- Location:
- titan/titan
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/textbox.h
r20654 r23702 7 7 int textbox(char* title, char* text, char* b1, int rc1, char* b2, int rc2, char* b3, int rc3, char* b4, int rc4, int width, int height, int timeout, int flag) 8 8 { 9 debug(1000, "in");10 9 int rcret = -1, fromthread = 0; 11 10 struct skin* messagebox = getscreen("messagebox"); … … 146 145 changetitle(messagebox, NULL); 147 146 changetext(textbox, NULL); 148 debug(1000, "out");149 147 150 148 m_unlock(&status.textboxmutex, 22); -
titan/titan/textinput.h
r20654 r23702 4 4 char* textinput(char* title, char* text) 5 5 { 6 debug(1000, "in");7 6 int rcret = -1, fromthread = 0, height = 0; 8 7 struct skin* textinput = getscreen("textinput"); … … 69 68 70 69 textinput->height = height; 71 debug(1000, "out");72 70 return ret; 73 71 } -
titan/titan/textinputhist.h
r20184 r23702 110 110 char* textinputhist(char* title, char* text, char* histname) 111 111 { 112 debug(1000, "in");113 112 int rcret = -1, fromthread = 0, height = 0; 114 113 struct skin* textinputhist = getscreen("textinputhist"); … … 229 228 textinputhist->height = height; 230 229 delmarkedscreennodes(textinputhist, 1); 231 debug(1000, "out");232 printf("ret: %s\n",ret);233 230 return ret; 234 231 } -
titan/titan/timerthread.h
r23185 r23702 4 4 struct stimerthread* gettimerbythread(pthread_t thread) 5 5 { 6 //debug(1000, "in");7 6 struct stimerthread *node = NULL; 8 7 … … 14 13 { 15 14 m_unlock(&status.timerthreadmutex, 6); 16 //debug(1000, "out");17 15 return node; 18 16 } … … 22 20 23 21 m_unlock(&status.timerthreadmutex, 6); 24 //debug(1000, "out");25 22 return NULL; 26 23 } … … 28 25 struct stimerthread* gettimer(struct stimerthread* timernode) 29 26 { 30 //debug(1000, "in");31 27 struct stimerthread *node = NULL; 32 28 … … 38 34 { 39 35 m_unlock(&status.timerthreadmutex, 6); 40 //debug(1000, "out");41 36 return node; 42 37 } … … 52 47 struct stimerthread* addtimer(void* func, int aktion, int delay, int count, void* param1, void* param2, struct stimerthread* last) 53 48 { 54 debug(1000, "in");55 49 struct stimerthread *newnode = NULL, *prev = NULL, *node = NULL; 56 50 … … 93 87 94 88 m_unlock(&status.timerthreadmutex, 6); 95 debug(1000, "out");96 89 return newnode; 97 90 } … … 101 94 void deltimer(struct stimerthread *tnode, int flag) 102 95 { 103 debug(1000, "in");104 96 int i = 0; 105 97 void* threadstatus; … … 146 138 147 139 if(flag == 0) m_unlock(&status.timerthreadmutex, 6); 148 debug(1000, "out");149 140 } 150 141 … … 153 144 void freetimer(int flag) 154 145 { 155 debug(1000, "in");156 146 struct stimerthread *node = stimerthread, *prev = stimerthread; 157 147 … … 168 158 } 169 159 } 170 debug(1000, "out");171 160 } 172 161 173 162 void* timerthreadsubfunc(void *param) 174 163 { 175 debug(1000, "in");176 164 int count = 0; 177 165 struct stimerthread* node = (struct stimerthread*)param; … … 179 167 if(param == NULL) 180 168 { 181 debug(1000, "out ->NULL detect");169 err("NULL detect"); 182 170 pthread_exit(NULL); 183 171 } … … 215 203 node->status = DEACTIVE; 216 204 217 debug(1000, "out");218 205 pthread_exit(NULL); 219 206 } … … 221 208 void* timerthreadfunc(void *param) 222 209 { 223 debug(1000, "in");224 210 int ret = 0; 225 211 struct stimerthread* node = NULL; … … 276 262 status.timerthreadstatus = DEACTIVE; 277 263 278 debug(1000, "out");279 264 pthread_exit(NULL); 280 265 } -
titan/titan/timezone.h
r16511 r23702 4 4 int readtimezone(struct skin* timezone, struct skin* listbox) 5 5 { 6 debug(1000, "in");7 6 FILE *fd = NULL; 8 7 char *fileline = NULL, *filename = NULL; … … 67 66 fclose(fd); 68 67 free(fileline); 69 debug(1000, "out");70 68 return 0; 71 69 } -
titan/titan/titan.c
r23275 r23702 278 278 void oshutdown(int exitcode, int flag) 279 279 { 280 debug(1000, "in");281 280 struct dvbdev* dvbnode = dvbdev; 282 281 struct service* servicenode = service; … … 489 488 } 490 489 491 debug(1000, "out");492 490 exit(exitcode); 493 491 } … … 495 493 int main(int argc, char *argv[]) 496 494 { 497 debug(1000, "in");498 495 int ret = 0, serviceret = 0, skincheck = 0; 499 496 char* tmpstr = NULL; … … 1070 1067 free(mmapfb); mmapfb=NULL; 1071 1068 } 1072 debug(1000, "out");1073 1069 oshutdown(1, 1); 1074 1070 return 0;
Note: See TracChangeset
for help on using the changeset viewer.