CreateCAbiHeader creates a C header file for the component's API
(component ComponentDefinition, CHeaderName string)
| 266 | |
| 267 | // CreateCAbiHeader creates a C header file for the component's API |
| 268 | func CreateCAbiHeader(component ComponentDefinition, CHeaderName string) (error) { |
| 269 | hfile, err := CreateLanguageFile(CHeaderName, " "); |
| 270 | if (err != nil) { |
| 271 | return err; |
| 272 | } |
| 273 | hfile.WriteCLicenseHeader (component, |
| 274 | fmt.Sprintf ("This is an autogenerated plain C Header file in order to allow an easy\n use of %s", component.LibraryName), |
| 275 | true); |
| 276 | err = buildCAbiHeader(component, hfile, component.NameSpace, component.BaseName, false); |
| 277 | return err; |
| 278 | } |
| 279 | |
| 280 | func writeClassMethodsIntoCCPPHeader(component ComponentDefinition, class ComponentDefinitionClass, w LanguageWriter, NameSpace string, useCPPTypes bool) (error) { |
| 281 | w.Writeln(""); |
no test coverage detected