Exemple #1
0
static void Options$save_hook(Options *_this)
{
	Options$save_real(_this);

	std::ofstream ofs(file.c_str());
	ofs << "guiscale:" << guiScale << std::endl;
}
Exemple #2
0
void save_value (FILE *f, value v)
{ save_int (f, v -> tag);
  switch (v -> tag)
    { case string_value:	save_string (f, v -> u.str); break;
      case integer_value:	save_int (f, v -> u.inum); break;
      case real_value:		save_real (f, v -> u.rnum); break;
      case tuple_value:		save_value_list (f, v -> u.tuple); break;
      case small_lattice_value: save_int (f, v -> u.slat); break;
      case large_lattice_value: save_int_list (f, v -> u.elat); break;
      default: bad_tag (v -> tag, "save_value");
    };
};
Exemple #3
0
/*
 * Update memory cache only
 */
int save_memory(struct sip_msg* _m, char* _t, char* _s)
{
	mem_only = FL_MEM;
	return save_real(_m, (udomain_t*)_t, _s, 1);
}
Exemple #4
0
/*
 * Process REGISTER request and save it's contacts, do not send any replies
 */
int save_noreply(struct sip_msg* _m, char* _t, char* _s)
{
	mem_only = 0;
	return save_real(_m, (udomain_t*)_t, _s, 0);
}
Exemple #5
0
/*
 * Update memory cache only
 */
int save_memory(struct sip_msg* _m, char* table, char* aor_filter)
{
	mem_only = FL_MEM;
	return save_real(_m, (udomain_t*)table, aor_filter, 1);
}
Exemple #6
0
/*
 * Process REGISTER request and save it's contacts, do not send any replies
 */
int save_noreply(struct sip_msg* _m, char* table, char* aor_filter)
{
	mem_only = FL_NONE;
	return save_real(_m, (udomain_t*)table, aor_filter, 0);
}