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!

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s


%d bloggers like this: