Remote protocol working.
[wrappi.git] / lib / wrappi.c
index c0350f5..3ea0449 100644 (file)
@@ -112,3 +112,15 @@ wrap_int_set_error_errno (struct wrap_internal_h *w,
 
   set_error_buf (w, msg, errnum, func);
 }
+
+/* Note the gperf perfect hash in lib/internal-procs-lookup.gperf */
+int
+wrap_int_lookup_proc_entry (const char *name)
+{
+  const struct proc_entry *v =
+    wrap_int_gperf_lookup_proc_entry (name, strlen (name));
+  if (v)
+    return v->proc_nr;
+  else
+    return -1;
+}