include: optional function availability by macros

Some functions - inject, eq_readfrom, etc. are optional for
providers. This patch introduces macros that enable applications
to check if these functions are available.

Signed-off-by: Sayantan Sur <sayantan.sur@intel.com>