botsense/libbotsense/bsLibServer.c
static void bsLogVConnOpenEvent(BsClient_T *pClient, int index)
{
  FILE                    *fp;
  BsVConn_T               *pVConn;
  const BsClientAppInfo_T *pAppInfo;

  fp        = LOG_GET_LOGFP();
  pVConn    = pClient->m_tblVConn[index];

  if( pVConn == NULL )
  {
    fprintf(fp, "%s: internal data corruption.\n", pClient->m_sClientName);
    return;
  }

  pAppInfo  = pVConn->m_pAppInfo;

  fprintf(fp, "%s: Opened Virtual Connection\n", pClient->m_sClientName); 
  fprintf(fp, "{\n");
  fprintf(fp, "  VConn:      %d\n", pVConn->m_hndVConn);
  fprintf(fp, "  Device:     %s\n", pVConn->m_sDevName);
  fprintf(fp, "  I/F Module: %s\n", pVConn->m_sModName);
  if( pAppInfo != NULL )
  {
    fprintf(fp, "  Application = {\n");
    if( pAppInfo->app_name != NULL )
    {
      fprintf(fp, "    Name:       %s\n", pAppInfo->app_name);
    }
    if( pAppInfo->brief != NULL )
    {
      fprintf(fp, "    Brief:      %s\n", pAppInfo->brief);
    }
    if( pAppInfo->version != NULL )
    {
      fprintf(fp, "    Version:    %s\n", pAppInfo->version);
    }
    if( pAppInfo->date != NULL )
    {
      fprintf(fp, "    Date:       %s\n", pAppInfo->date);
    }
    if( pAppInfo->maintainer != NULL )
    {
      fprintf(fp, "    Maintainer: %s\n", pAppInfo->maintainer);
    }
    fprintf(fp, "  }\n");
  }
  fprintf(fp, "}\n");
}
/*!
 * \brief Log virtual connection open event.
 *
 * \param pClient   \h_botsense client.
 * \param index     Internal vConnection index.
 */
\brief Log virtual connection open event.
\param pClient   \h_botsense client.
\param index     Internal vConnection index.
\ brief Log virtual connection open event . \ param pClient \ h_botsense client . \ param index Internal vConnection index .
static void bsLogVConnOpenEvent(BsClient_T *pClient, int index)
{
  FILE                    *fp;
  BsVConn_T               *pVConn;
  const BsClientAppInfo_T *pAppInfo;
  fp        = LOG_GET_LOGFP();
  pVConn    = pClient->m_tblVConn[index];
  if( pVConn == NULL )
  {
    fprintf(fp, "%s: internal data corruption.\n", pClient->m_sClientName);
    return;
  }
  pAppInfo  = pVConn->m_pAppInfo;
  fprintf(fp, "%s: Opened Virtual Connection\n", pClient->m_sClientName); 
  fprintf(fp, "{\n");
  fprintf(fp, "  VConn:      %d\n", pVConn->m_hndVConn);
  fprintf(fp, "  Device:     %s\n", pVConn->m_sDevName);
  fprintf(fp, "  I/F Module: %s\n", pVConn->m_sModName);
  if( pAppInfo != NULL )
  {
    fprintf(fp, "  Application = {\n");
    if( pAppInfo->app_name != NULL )
    {
      fprintf(fp, "    Name:       %s\n", pAppInfo->app_name);
    }
    if( pAppInfo->brief != NULL )
    {
      fprintf(fp, "    Brief:      %s\n", pAppInfo->brief);
    }
    if( pAppInfo->version != NULL )
    {
      fprintf(fp, "    Version:    %s\n", pAppInfo->version);
    }
    if( pAppInfo->date != NULL )
    {
      fprintf(fp, "    Date:       %s\n", pAppInfo->date);
    }
    if( pAppInfo->maintainer != NULL )
    {
      fprintf(fp, "    Maintainer: %s\n", pAppInfo->maintainer);
    }
    fprintf(fp, "  }\n");
  }
  fprintf(fp, "}\n");
}
static void bsLogVConnOpenEvent ( BsClient_T * pClient , int index ) { FILE * fp ; BsVConn_T * pVConn ; const BsClientAppInfo_T * pAppInfo ; fp = LOG_GET_LOGFP ( ) ; pVConn = pClient -> m_tblVConn [ index ] ; if ( pVConn == NULL ) { fprintf ( fp , " \n " , pClient -> m_sClientName ) ; return ; } pAppInfo = pVConn -> m_pAppInfo ; fprintf ( fp , " \n " , pClient -> m_sClientName ) ; fprintf ( fp , " \n " ) ; fprintf ( fp , " \n " , pVConn -> m_hndVConn ) ; fprintf ( fp , " \n " , pVConn -> m_sDevName ) ; fprintf ( fp , " \n " , pVConn -> m_sModName ) ; if ( pAppInfo != NULL ) { fprintf ( fp , " \n " ) ; if ( pAppInfo -> app_name != NULL ) { fprintf ( fp , " \n " , pAppInfo -> app_name ) ; } if ( pAppInfo -> brief != NULL ) { fprintf ( fp , " \n " , pAppInfo -> brief ) ; } if ( pAppInfo -> version != NULL ) { fprintf ( fp , " \n " , pAppInfo -> version ) ; } if ( pAppInfo -> date != NULL ) { fprintf ( fp , " \n " , pAppInfo -> date ) ; } if ( pAppInfo -> maintainer != NULL ) { fprintf ( fp , " \n " , pAppInfo -> maintainer ) ; } fprintf ( fp , " \n " ) ; } fprintf ( fp , " \n " ) ; }
\brief Log virtual connection open event.
\ brief Log virtual connection open event .