Created
July 9, 2012 14:57
-
-
Save aragaer/3077016 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| do { | |
| rc = sqlite3_step(stm); | |
| switch (rc) { | |
| case SQLITE_ROW: | |
| data.iface = sqlite3_column_text(stm, 0); | |
| cnt->incoming_bytes = sqlite3_column_int64(stm, 1); | |
| cnt->outgoing_bytes = sqlite3_column_int64(stm, 2); | |
| if (info_cb(&data, user_data) == PCL_CANCEL) | |
| rc = SQLITE_DONE; /* emulate end of data */ | |
| break; | |
| case SQLITE_DONE: | |
| break; | |
| case SQLITE_ERROR: | |
| default: | |
| result = PCL_ERROR_DB_FAILED; | |
| break; | |
| } | |
| } while (rc == SQLITE_ROW); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment