Lines Matching defs:configFile

88 static int WriteWinConfigEntry(FILE *configFile, TwmWindow *theWindow,
90 static int ReadWinConfigEntry(FILE *configFile, unsigned short version,
370 static int WriteWinConfigEntry(FILE *configFile, TwmWindow *theWindow,
385 if(!write_counted_string(configFile, clientId)) {
389 if(!write_counted_string(configFile, windowRole)) {
394 if(!write_counted_string(configFile, theWindow->class.res_name)) {
397 if(!write_counted_string(configFile, theWindow->class.res_class)) {
407 if(!write_counted_string(configFile, NULL)) {
412 if(!write_counted_string(configFile, theWindow->name)) {
422 if(!write_byte(configFile, 0)) {
427 if(!write_byte(configFile, (char) wm_command_count)) {
431 if(!write_counted_string(configFile, wm_command[i])) {
444 if(!write_byte(configFile, theWindow->isicon ? 1 : 0)) {
455 if(!write_byte(configFile, theWindow->icon->w ? 1 : 0)) {
462 if(!write_short(configFile, (short) icon_x)) {
465 if(!write_short(configFile, (short) icon_y)) {
471 if(!write_byte(configFile, 0)) {
477 if(!write_short(configFile, (short) theWindow->frame_x)) {
480 if(!write_short(configFile, (short) theWindow->frame_y)) {
483 if(!write_ushort(configFile, (unsigned short) theWindow->attr.width)) {
486 if(!write_ushort(configFile, (unsigned short) theWindow->attr.height)) {
489 if(!write_byte(configFile, theWindow->widthEverChangedByUser ? 1 : 0)) {
492 if(!write_byte(configFile, theWindow->heightEverChangedByUser ? 1 : 0)) {
501 if(!write_int(configFile, theWindow->occupation)) {
512 static int ReadWinConfigEntry(FILE *configFile, unsigned short version,
527 if(!read_counted_string(configFile, &entry->client_id)) {
531 if(!read_counted_string(configFile, &entry->window_role)) {
536 if(!read_counted_string(configFile, &entry->class.res_name)) {
539 if(!read_counted_string(configFile, &entry->class.res_class)) {
542 if(!read_counted_string(configFile, &entry->wm_name)) {
546 if(!read_byte(configFile, &byte)) {
562 if(!read_counted_string(configFile, &entry->wm_command[i])) {
568 if(!read_byte(configFile, &byte)) {
574 if(!read_byte(configFile, &byte)) {
581 if(!read_short(configFile, (short *) &entry->icon_x)) {
584 if(!read_short(configFile, (short *) &entry->icon_y)) {
589 if(!read_short(configFile, (short *) &entry->x)) {
592 if(!read_short(configFile, (short *) &entry->y)) {
595 if(!read_ushort(configFile, &entry->width)) {
598 if(!read_ushort(configFile, &entry->height)) {
603 if(!read_byte(configFile, &byte)) {
608 if(!read_byte(configFile, &byte)) {
623 if(!read_int(configFile, &entry->occupation)) {
671 FILE *configFile;
676 configFile = fopen(filename, "rb");
677 if(!configFile) {
681 if(!read_ushort(configFile, &version) ||
687 if(ReadWinConfigEntry(configFile, version, &entry)) {
696 fclose(configFile);
890 FILE *configFile = NULL;
954 if(!(configFile = fdopen(configFd, "wb"))) { /* wb = write binary */
958 if(!write_ushort(configFile, SAVEFILE_VERSION)) {
973 if(!WriteWinConfigEntry(configFile, theWindow,
1046 if(configFile) {
1047 fclose(configFile);