| 726 | /************************************************************************/ |
| 727 | |
| 728 | outputFormatObj *msCloneOutputFormat( outputFormatObj *src ) |
| 729 | |
| 730 | { |
| 731 | outputFormatObj *dst; |
| 732 | int i; |
| 733 | |
| 734 | dst = msAllocOutputFormat( NULL, src->name, src->driver ); |
| 735 | |
| 736 | msFree( dst->mimetype ); |
| 737 | if( src->mimetype ) |
| 738 | dst->mimetype = msStrdup( src->mimetype ); |
| 739 | else |
| 740 | dst->mimetype = NULL; |
| 741 | |
| 742 | msFree( dst->extension ); |
| 743 | if( src->extension ) |
| 744 | dst->extension = msStrdup( src->extension ); |
| 745 | else |
| 746 | dst->extension = NULL; |
| 747 | |
| 748 | dst->imagemode = src->imagemode; |
| 749 | dst->renderer = src->renderer; |
| 750 | |
| 751 | dst->transparent = src->transparent; |
| 752 | dst->bands = src->bands; |
| 753 | |
| 754 | dst->numformatoptions = src->numformatoptions; |
| 755 | dst->formatoptions = (char **) |
| 756 | malloc(sizeof(char *) * src->numformatoptions ); |
| 757 | |
| 758 | for( i = 0; i < src->numformatoptions; i++ ) |
| 759 | dst->formatoptions[i] = msStrdup(src->formatoptions[i]); |
| 760 | |
| 761 | dst->inmapfile = src->inmapfile; |
| 762 | |
| 763 | return dst; |
| 764 | } |
| 765 | |
| 766 | /************************************************************************/ |
| 767 | /* msGetOutputFormatOption() */ |
no test coverage detected