/[svn]/liblscp/trunk/src/common.c
ViewVC logotype

Diff of /liblscp/trunk/src/common.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 419 by capela, Wed Mar 2 16:25:27 2005 UTC revision 564 by capela, Sun May 22 22:02:00 2005 UTC
# Line 660  int lscp_plist_size ( lscp_param_t **ppL Line 660  int lscp_plist_size ( lscp_param_t **ppL
660    
661    
662  //-------------------------------------------------------------------------  //-------------------------------------------------------------------------
663    // Server info struct helper functions.
664    
665    void lscp_server_info_init ( lscp_server_info_t *pServerInfo )
666    {
667        pServerInfo->description = NULL;
668        pServerInfo->version     = NULL;
669    }
670    
671    void lscp_server_info_free ( lscp_server_info_t *pServerInfo )
672    {
673        if (pServerInfo->description)
674            free(pServerInfo->description);
675        if (pServerInfo->version)
676            free(pServerInfo->version);
677    }
678    
679    void lscp_server_info_reset ( lscp_server_info_t *pServerInfo )
680    {
681        lscp_server_info_free(pServerInfo);
682        lscp_server_info_init(pServerInfo);
683    }
684    
685    
686    //-------------------------------------------------------------------------
687  // Engine info struct helper functions.  // Engine info struct helper functions.
688    
689  void lscp_engine_info_init ( lscp_engine_info_t *pEngineInfo )  void lscp_engine_info_init ( lscp_engine_info_t *pEngineInfo )

Legend:
Removed from v.419  
changed lines
  Added in v.564

  ViewVC Help
Powered by ViewVC