control: Add basic MCTP Control Protocol handler

This will respond to the 4 mandatory MCTP Control Protocol commands.
Applications can register supported types using mctp_control_add_type().

Change-Id: Ia904bcbe118626adf9254ffa71dd8e17fbdfc9b7
Signed-off-by: Matt Johnston <matt@codeconstruct.com.au>
diff --git a/meson.build b/meson.build
index fa6ff81..28c0126 100644
--- a/meson.build
+++ b/meson.build
@@ -14,6 +14,7 @@
 sources = [
      'core.c',
      'alloc.c',
+     'control.c',
 ]
 
 headers = [
@@ -45,6 +46,9 @@
 i2c_headers = [
     'libmctp-i2c.h',
 ]
+control_sources = [
+    'control.c',
+]
 
 libmctp_sources = sources
 libmctp_headers = headers
@@ -61,6 +65,9 @@
     libmctp_sources += i2c_sources
     libmctp_headers += i2c_headers
 endif
+if get_option('control')
+    libmctp_sources += control_sources
+endif
 
 compiler = meson.get_compiler('c')