int incexc_send_client(struct config *conf, struct cntr *p1cntr) { if(do_start("incexc", "incexc ok") || do_sends(conf) || do_finish("incexc end", "incexc end ok")) return -1; return 0; }
int incexc_send_server_restore(struct config *conf, struct cntr *p1cntr) { /* 'srestore' and 'srestore ok' have already been exchanged, so go straight into doing the sends. */ if(do_sends_restore(conf) || do_finish("srestore end", "srestore end ok")) return -1; return 0; }
WORD col_pa_pref( ) { REG OBJECT *obj; REG WORD ret; REG WINDOW *win; LONG newwin; LONG newdesk; LONG *outpat; WORD last,i,j; obj = get_tree( SSCREEN ); newdesk = background[0].ob_spec; newwin = (UWORD)windspec; /* set the background pattern */ last = ret = obj[DESKPREF].ob_state & SELECTED ? DESKPREF : WINPREF; for ( j = COLOR0,i = d_maxcolor; i < 16; i++ ) obj[j+i].ob_flags |= HIDETREE; fm_draw( SSCREEN ); goto c_1; while( TRUE ) { ret = xform_do( obj, 0 ); c_1: if ( ret == SOK ) break; if ( ret == SCANCEL ) { do_finish( SSCREEN ); return; } if ( ret == DESKPREF ) { outpat = &newdesk; obj[DESKPREF].ob_state = SELECTED; obj[WINPREF].ob_state = NORMAL; goto c_2; } if ( ret == WINPREF ) { outpat = &newwin; obj[WINPREF].ob_state = SELECTED; obj[DESKPREF].ob_state = NORMAL; c_2: draw_fld( obj, DESKPREF ); draw_fld( obj, WINPREF ); obj[PATTERN].ob_spec = *outpat; } if ( ( ret >= PAT0 ) && ( ret <= PAT7 ) ) { obj[PATTERN].ob_spec &= 0xFFFFFF0FL; obj[PATTERN].ob_spec |= obj[ret].ob_spec & 0x000000F0L; } else /* color changed */ if ( ( ret >= COLOR0 ) && ( ret <= COLOR15 ) ) { obj[PATTERN].ob_spec &= 0xFFFFFFF0L; obj[PATTERN].ob_spec |= obj[ret].ob_spec & 0x0000000FL; } objc_draw( obj, OUTBOX, 2, 0, 0, full.w, full.h ); *outpat = obj[PATTERN].ob_spec; }/* while */ do_finish( SSCREEN ); if ( background[0].ob_spec != newdesk ) { background[0].ob_spec = newdesk; do_redraw( 0, &full, 0 ); } win = winhead; if ( windspec != (UWORD)newwin ) { windspec = (UWORD)newwin; while( win ) { if ( win->w_obj ) /* fixed 7/7/92 */ win->w_obj[0].ob_spec = windspec; win = win->w_next; } win = w_gfirst(); while( win ) { do_redraw( win->w_id, &full, 0 ); win = w_gnext(); } } }
static void do_deinit(assuan_context_t ctx) { do_finish(ctx); }