MCPcopy Create free account
hub / github.com/MapServer/MapServer / createVTFItem

Function createVTFItem

mappluginlayer.c:49–61  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

47
48
49static VTFactoryItemObj *
50createVTFItem(const char *name)
51{
52 VTFactoryItemObj *pVTFI;
53
54 pVTFI = (VTFactoryItemObj *)malloc(sizeof(VTFactoryItemObj));
55 MS_CHECK_ALLOC(pVTFI, sizeof(VTFactoryItemObj), NULL);
56
57 pVTFI->name = msStrdup(name);
58 memset(&pVTFI->vtable, 0, sizeof(layerVTableObj));
59
60 return pVTFI;
61}
62
63static void
64destroyVTFItem(VTFactoryItemObj **pVTFI)

Callers 1

loadCustomLayerDLLFunction · 0.85

Calls 1

msStrdupFunction · 0.85

Tested by

no test coverage detected