** Initialize a webObj structure */
| 4791 | ** Initialize a webObj structure |
| 4792 | */ |
| 4793 | void initWeb(webObj *web) |
| 4794 | { |
| 4795 | web->extent.minx = web->extent.miny = web->extent.maxx = web->extent.maxy = -1.0; |
| 4796 | web->template = NULL; |
| 4797 | web->header = web->footer = NULL; |
| 4798 | web->error = web->empty = NULL; |
| 4799 | web->mintemplate = web->maxtemplate = NULL; |
| 4800 | web->minscaledenom = web->maxscaledenom = -1; |
| 4801 | web->log = NULL; |
| 4802 | web->imagepath = msStrdup(""); |
| 4803 | web->temppath = NULL; |
| 4804 | web->imageurl = msStrdup(""); |
| 4805 | |
| 4806 | initHashTable(&(web->metadata)); |
| 4807 | initHashTable(&(web->validation)); |
| 4808 | |
| 4809 | web->map = NULL; |
| 4810 | web->queryformat = msStrdup("text/html"); |
| 4811 | web->legendformat = msStrdup("text/html"); |
| 4812 | web->browseformat = msStrdup("text/html"); |
| 4813 | } |
| 4814 | |
| 4815 | void freeWeb(webObj *web) |
| 4816 | { |
no test coverage detected