Lines Matching defs:rlz
5 // A library to manage RLZ information for access-points shared
8 #include "rlz/lib/rlz_lib.h"
12 #include "rlz/lib/assert.h"
13 #include "rlz/lib/crc32.h"
14 #include "rlz/lib/financial_ping.h"
15 #include "rlz/lib/lib_values.h"
16 #include "rlz/lib/rlz_value_store.h"
17 #include "rlz/lib/string_utils.h"
57 // Current RLZ can only use [a-zA-Z0-9_\-]
83 // This function will remove bad rlz chars and also limit the max rlz to some
292 // RLZ storage functions.
294 bool GetAccessPointRlz(AccessPoint point, char* rlz, size_t rlz_size) {
295 if (!rlz || rlz_size <= 0) {
300 rlz[0] = 0;
310 return store->ReadAccessPointRlz(point, rlz, rlz_size);
327 "Cannot set RLZ for unsupported access point."));
331 // Verify the RLZ length.
334 ASSERT_STRING("SetAccessPointRlz: RLZ length is exceeds max allowed.");
342 // Setting RLZ to empty == clearing.
537 if (StartsWithASCII(response_line, kRlzCgiVariable, true)) { // An RLZ.
550 // Get the new RLZ.
605 // Add the RLZ Exchange Protocol version.
608 // Copy the &rlz= over.
612 // Now add each of the RLZ's. Keep the lock during all GetAccessPointRlz()
618 bool first_rlz = true; // comma before every RLZ but the first.
620 char rlz[kMaxRlzLength + 1];
621 if (GetAccessPointRlz(access_points[i], rlz, arraysize(rlz))) {
628 access_point, kRlzCgiIndicator, rlz);