<'
# Copyright (c) 2012, 2026 LAAS/CNRS
# All rights reserved.
#
# Redistribution and use  in source  and binary  forms,  with or without
# modification, are permitted provided that the following conditions are
# met:
#
#   1. Redistributions of  source  code must retain the  above copyright
#      notice and this list of conditions.
#   2. Redistributions in binary form must reproduce the above copyright
#      notice and  this list of  conditions in the  documentation and/or
#      other materials provided with the distribution.
#
#                                      Anthony Mallet on Wed Mar 14 2012
#

args components
lang c
'>

/* This provides a constant entry point for loadable modules, so that there is
 * no need to "guess" a particular symbol name to lookup after dlopen()ing the
 * module.
 */
<'foreach c $components {'>
<'  set comp [$c name]'>

#include "<"$comp">/c/client.h"

const struct genom_client_info * const genom_client_info =
  &genom_<"$comp">_client_info;

<'}'>
/* eof */
