Writing your own OpenSAF Component

Writing an OpenSAF component is easy if you know the SAF AMF APIs, but probably hard otherwise! Luckily I know them 🙂 and also OpenSAF provides a template “main” file called amf_comp_template.c in the avsv sample directory. I copied this and the Makefile into a separate directory, renamed it to “main.c”, modified the makefile, built, copied the binary over the amf_demo component (so I wouldn’t have to hack imm.xml) & I was up and running!

Leave a comment