OLD | NEW |
1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium OS Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef METRICS_DAEMON_H_ | 5 #ifndef METRICS_DAEMON_H_ |
6 #define METRICS_DAEMON_H_ | 6 #define METRICS_DAEMON_H_ |
7 | 7 |
8 #include <dbus/dbus-glib.h> | 8 #include <dbus/dbus-glib.h> |
9 #include <sys/time.h> | 9 #include <sys/time.h> |
10 #include <time.h> | 10 #include <time.h> |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 | 79 |
80 // Array of network states of interest. | 80 // Array of network states of interest. |
81 static NetworkState network_states_[kNumberNetworkStates]; | 81 static NetworkState network_states_[kNumberNetworkStates]; |
82 | 82 |
83 bool testing_; // just testing | 83 bool testing_; // just testing |
84 NetworkStateId network_state_id_; // id of current state | 84 NetworkStateId network_state_id_; // id of current state |
85 struct timeval network_state_start_; // when current state was entered | 85 struct timeval network_state_start_; // when current state was entered |
86 }; | 86 }; |
87 | 87 |
88 #endif // METRICS_DAEMON_H_ | 88 #endif // METRICS_DAEMON_H_ |
OLD | NEW |