Subversion Repositories filter_foundry

Rev

Rev 529 | Rev 533 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 529 Rev 532
Line 565... Line 565...
565
        if (params) saveparams_afs_pff(params);
565
        if (params) saveparams_afs_pff(params);
566
 
566
 
567
        return showdialog;
567
        return showdialog;
568
}
568
}
569
 
569
 
570
Boolean host_preserves_parameters() {
570
Boolean host_preserves_parameters(void) {
571
        #ifdef DEBUG_SIMULATE_GIMP
571
        #ifdef DEBUG_SIMULATE_GIMP
572
        return false;
572
        return false;
573
        #endif
573
        #endif
574
 
574
 
575
        if (gpb->hostSig == HOSTSIG_GIMP) return false;
575
        if (gpb->hostSig == HOSTSIG_GIMP) return false;
Line 577... Line 577...
577
 
577
 
578
        // We just assume the other hosts preserve the parameters
578
        // We just assume the other hosts preserve the parameters
579
        return true;
579
        return true;
580
}
580
}
581
 
581
 
582
int64_t maxspace(){
582
int64_t maxspace(void){
583
        // Please see "Hosts.md" for details about the MaxSpace implementations of tested plugins
583
        // Please see "Hosts.md" for details about the MaxSpace implementations of tested plugins
584
 
584
 
585
        // Plugins that don't support MaxSpace64 shall set the field to zero; then we will use MaxSpace instead.
585
        // Plugins that don't support MaxSpace64 shall set the field to zero; then we will use MaxSpace instead.
586
        // Also check "gpb->bufferProcs->numBufferProcs" to see if 64 bit API is available
586
        // Also check "gpb->bufferProcs->numBufferProcs" to see if 64 bit API is available
587
        if ((gpb->bufferProcs->numBufferProcs >= 8) && (gpb->maxSpace64 > 0)) {
587
        if ((gpb->bufferProcs->numBufferProcs >= 8) && (gpb->maxSpace64 > 0)) {
Line 598... Line 598...
598
 
598
 
599
                return maxSpace64;
599
                return maxSpace64;
600
        }
600
        }
601
}
601
}
602
 
602
 
603
Boolean maxspace_available() {
603
Boolean maxspace_available(void) {
604
        // Please see "Hosts.md" for details about the MaxSpace implementations of tested plugins
604
        // Please see "Hosts.md" for details about the MaxSpace implementations of tested plugins
605
 
605
 
606
        // GIMP PSPI sets MaxSpace to hardcoded 100 MB
606
        // GIMP PSPI sets MaxSpace to hardcoded 100 MB
607
        if (gpb->hostSig == HOSTSIG_GIMP) return false;
607
        if (gpb->hostSig == HOSTSIG_GIMP) return false;
608
 
608
 
Line 818... Line 818...
818
                freetree(tree[i]);
818
                freetree(tree[i]);
819
                if(expr[i]) free(expr[i]);
819
                if(expr[i]) free(expr[i]);
820
        }
820
        }
821
}
821
}
822
 
822
 
823
InternalState saveInternalState() {
823
InternalState saveInternalState(void) {
824
        InternalState ret;
824
        InternalState ret;
825
        int i;
825
        int i;
826
 
826
 
827
        ret.bak_obfusc = gdata->obfusc;
827
        ret.bak_obfusc = gdata->obfusc;
828
        ret.bak_standalone = gdata->standalone;
828
        ret.bak_standalone = gdata->standalone;