Преглед на файлове

core: renamed getbflsgs to getblagsval

- match the template of counterpart setblagsval
- swapped the parameters
Daniel-Constantin Mierla преди 16 години
родител
ревизия
d02a166db8
променени са 2 файла, в които са добавени 3 реда и са изтрити 3 реда
  1. 1 1
      dset.c
  2. 2 2
      dset.h

+ 1 - 1
dset.c

@@ -126,7 +126,7 @@ int resetbflag(unsigned int branch, flag_t flag)
 }
 
 
-int getbflags(flag_t* res, unsigned int branch)
+int getbflagsval(unsigned int branch, flag_t* res)
 {
 	flag_t* flags;
 	if (res == NULL) return -1;

+ 2 - 2
dset.h

@@ -126,11 +126,11 @@ int isbflagset(unsigned int branch, flag_t flag);
  *
  * This function returns the value of all branch flags
  * combined in a single variable.
- * @param res A pointer to a variable to store the result
  * @param branch Number of the branch (0 for the main Request-URI branch)
+ * @param res A pointer to a variable to store the result
  * @return 1 on success, -1 on failure
  */
-int getbflags(flag_t* res, unsigned int branch);
+int getbflagsval(unsigned int branch, flag_t* res);
 
 /**
  * Set the value of all branch flags at once for a given branch.