17c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// Copyright 2012 Google Inc. All Rights Reserved. 27c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// 37c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// Licensed under the Apache License, Version 2.0 (the "License"); 47c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// you may not use this file except in compliance with the License. 57c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// You may obtain a copy of the License at 67c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// 77c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// http://www.apache.org/licenses/LICENSE-2.0 87c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// 97c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// Unless required by applicable law or agreed to in writing, software 107c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// distributed under the License is distributed on an "AS IS" BASIS, 117c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 127c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// See the License for the specific language governing permissions and 137c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// limitations under the License. 147c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 157c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet#ifndef POLO_PAIRING_POLOERROR_H_ 167c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet#define POLO_PAIRING_POLOERROR_H_ 177c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 187c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichetnamespace polo { 197c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichetnamespace pairing { 207c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 217c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet// Error codes for the pairing process. 227c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichetenum PoloError { 237c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet // Not an error. 247c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet kOk = 0, 257c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 267c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet // Network-layer error. 277c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet kErrorNetwork = 1, 287c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 297c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet // Polo pairing protocol error. 307c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet kErrorProtocol = 2, 317c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 327c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet // Invalid pairing configuration. 337c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet kErrorBadConfiguration = 3, 347c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 357c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet // The user provided challenge response (secret) is incorrect. 367c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet kErrorInvalidChallengeResponse = 4 377c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet}; 387c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 397c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet} // namespace pairing 407c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet} // namespace polo 417c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet 427c9978567a202d6aa98beac5da5e1b3b34792862Jerome Poichet#endif // POLO_PAIRING_POLOERROR_H_ 43