Mixe for Privacy and Anonymity in the Internet
Functions
TermsAndConditions.cpp File Reference
#include "StdAfx.h"
#include "TermsAndConditions.hpp"
#include "CAMsg.hpp"
#include "CACmdLnOptions.hpp"
#include "CAUtil.hpp"
Include dependency graph for TermsAndConditions.cpp:

Go to the source code of this file.

Functions

void cleanupTnCMixAnswer (termsAndConditionMixAnswer_t *answer)
 IMPORTANT NOTE: all methods does NOT incorporate locking over the translation store and thus are NOT THREAD-SAFE. More...
 
void cleanupTnCTranslation (termsAndConditionsTranslation_t *tnCTranslation)
 

Function Documentation

◆ cleanupTnCMixAnswer()

void cleanupTnCMixAnswer ( termsAndConditionMixAnswer_t answer)

IMPORTANT NOTE: all methods does NOT incorporate locking over the translation store and thus are NOT THREAD-SAFE.

If a caller obtains a reference to a translation entry he must lock it as long as he works with it by using the lock object provided by "getSynchLock".

Definition at line 44 of file TermsAndConditions.cpp.

45 {
46  if( (answer != NULL) )
47  {
48  if((answer->xmlAnswer != NULL))
49  {
50  answer->xmlAnswer->release();
51  answer->xmlAnswer = NULL;
52  }
53  answer->result = TC_UNFINISHED;
54  }
55 }
@ TC_UNFINISHED
XERCES_CPP_NAMESPACE::DOMDocument * xmlAnswer

References termsAndConditionMixAnswer_t::result, TC_UNFINISHED, and termsAndConditionMixAnswer_t::xmlAnswer.

Referenced by CAFirstMix::doUserLogin_internal().

Here is the caller graph for this function:

◆ cleanupTnCTranslation()

void cleanupTnCTranslation ( termsAndConditionsTranslation_t tnCTranslation)

Definition at line 57 of file TermsAndConditions.cpp.

58 {
59  if(tnCTranslation != NULL)
60  {
61  tnCTranslation->tnc_id = NULL;
62  tnCTranslation->tnc_template = NULL;
63  if(tnCTranslation->tnc_customized != NULL)
64  {
65  tnCTranslation->tnc_customized->release();
66  }
67  tnCTranslation->tnc_customized = NULL;
68  delete [] tnCTranslation->tnc_locale;
69  tnCTranslation->tnc_locale = NULL;
70  }
71 }

References termsAndConditionsTranslation_t::tnc_customized, termsAndConditionsTranslation_t::tnc_id, termsAndConditionsTranslation_t::tnc_locale, and termsAndConditionsTranslation_t::tnc_template.

Referenced by TermsAndConditions::removeTranslation(), and TermsAndConditions::~TermsAndConditions().

Here is the caller graph for this function: