return memcached_server_push(destination, source->servers);
}
-inline memcached_server_write_instance_st memcached_server_instance_fetch(memcached_st *ptr, uint32_t server_key)
+memcached_server_write_instance_st memcached_server_instance_fetch(memcached_st *ptr, uint32_t server_key)
{
return &ptr->servers[server_key];
}
-inline memcached_server_instance_st memcached_server_instance_by_position(const memcached_st *ptr, uint32_t server_key)
+memcached_server_instance_st memcached_server_instance_by_position(const memcached_st *ptr, uint32_t server_key)
{
return &ptr->servers[server_key];
}
return memcached_string_append(&ptr->value, value, length);
}
-inline const char *memcached_result_key_value(const memcached_result_st *self)
+const char *memcached_result_key_value(const memcached_result_st *self)
{
return self->key_length ? self->item_key : NULL;
}
-inline size_t memcached_result_key_length(const memcached_result_st *self)
+size_t memcached_result_key_length(const memcached_result_st *self)
{
return self->key_length;
}
-inline const char *memcached_result_value(const memcached_result_st *self)
+const char *memcached_result_value(const memcached_result_st *self)
{
const memcached_string_st *sptr= &self->value;
return memcached_string_value(sptr);
}
-inline size_t memcached_result_length(const memcached_result_st *self)
+size_t memcached_result_length(const memcached_result_st *self)
{
const memcached_string_st *sptr= &self->value;
return memcached_string_length(sptr);
}
-inline uint32_t memcached_result_flags(const memcached_result_st *self)
+uint32_t memcached_result_flags(const memcached_result_st *self)
{
return self->item_flags;
}
-inline uint64_t memcached_result_cas(const memcached_result_st *self)
+uint64_t memcached_result_cas(const memcached_result_st *self)
{
return self->item_cas;
}
-inline void memcached_result_set_flags(memcached_result_st *self, uint32_t flags)
+void memcached_result_set_flags(memcached_result_st *self, uint32_t flags)
{
self->item_flags= flags;
}
-inline void memcached_result_set_expiration(memcached_result_st *self, time_t expiration)
+void memcached_result_set_expiration(memcached_result_st *self, time_t expiration)
{
self->item_expiration= expiration;
}
}
}
-inline uint32_t memcached_servers_set_count(memcached_server_st *servers, uint32_t count)
+uint32_t memcached_servers_set_count(memcached_server_st *servers, uint32_t count)
{
return servers->number_of_hosts= count;
}
-inline uint32_t memcached_server_count(const memcached_st *self)
+uint32_t memcached_server_count(const memcached_st *self)
{
return self->number_of_hosts;
}
-inline const char *memcached_server_name(memcached_server_instance_st self)
+const char *memcached_server_name(memcached_server_instance_st self)
{
return self->hostname;
}
-inline in_port_t memcached_server_port(memcached_server_instance_st self)
+in_port_t memcached_server_port(memcached_server_instance_st self)
{
return self->port;
}
-inline uint32_t memcached_server_response_count(memcached_server_instance_st self)
+uint32_t memcached_server_response_count(memcached_server_instance_st self)
{
return self->cursor_active;
}
return memcached_server_list_append_with_weight(ptr, hostname, port, 0, error);
}
-inline uint32_t memcached_server_list_count(const memcached_server_list_st self)
+uint32_t memcached_server_list_count(const memcached_server_list_st self)
{
return (self == NULL)
? 0
: self->number_of_hosts;
}
-inline memcached_server_st *memcached_server_list(const memcached_st *self)
+memcached_server_st *memcached_server_list(const memcached_st *self)
{
return self->servers;
}
-inline void memcached_server_list_set(memcached_st *self, memcached_server_st *list)
+void memcached_server_list_set(memcached_st *self, memcached_server_st *list)
{
self->servers= list;
}
return _string_check(string, need);
}
-inline size_t memcached_string_length(const memcached_string_st *self)
+size_t memcached_string_length(const memcached_string_st *self)
{
return (size_t)(self->end - self->string);
}
-inline size_t memcached_string_size(const memcached_string_st *self)
+size_t memcached_string_size(const memcached_string_st *self)
{
return self->current_size;
}
-inline const char *memcached_string_value(const memcached_string_st *self)
+const char *memcached_string_value(const memcached_string_st *self)
{
return self->string;
}
-inline char *memcached_string_value_mutable(const memcached_string_st *self)
+char *memcached_string_value_mutable(const memcached_string_st *self)
{
return self->string;
}
-inline void memcached_string_set_length(memcached_string_st *self, size_t length)
+void memcached_string_set_length(memcached_string_st *self, size_t length)
{
self->end= self->string + length;
}