aboutsummaryrefslogtreecommitdiffstats
path: root/keyboard/mbed_onekey/main.cpp
diff options
context:
space:
mode:
authorIBNobody <IBNobody@users.noreply.github.com>2016-04-18 19:48:52 -0500
committerIBNobody <IBNobody@users.noreply.github.com>2016-04-18 19:48:52 -0500
commit499e3096e9021b88a6a705ad7034ccbacb97b975 (patch)
treeda477a9e67e16339267ee0946c3b253c612c7bbf /keyboard/mbed_onekey/main.cpp
parentcbcf0abe62b764a9f3d80848611dca8291d93eb8 (diff)
parent4b3358acc270772e5605397bab26fb5db981084d (diff)
downloadfirmware-499e3096e9021b88a6a705ad7034ccbacb97b975.tar.gz
firmware-499e3096e9021b88a6a705ad7034ccbacb97b975.tar.bz2
firmware-499e3096e9021b88a6a705ad7034ccbacb97b975.zip
Merge pull request #2 from IBNobody/personal_atomic_planck
Fixed speaker being on during sleep.
Diffstat (limited to 'keyboard/mbed_onekey/main.cpp')
0 files changed, 0 insertions, 0 deletions
119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225
#============================================================================
# This library is free software; you can redistribute it and/or
# modify it under the terms of version 2.1 of the GNU Lesser General Public
# License as published by the Free Software Foundation.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
#============================================================================
# Copyright (C) 2004, 2005 Mike Wray <mike.wray@hp.com>
# Copyright (C) 2005 XenSource Ltd.
#============================================================================

import socket
import httplib
import time
import types

from encode import *
from xen.xend import sxp

from xen.xend import XendOptions

DEBUG = 0

HTTP_OK                              = 200
HTTP_CREATED                         = 201
HTTP_ACCEPTED                        = 202
HTTP_NO_CONTENT                      = 204


xoptions = XendOptions.instance()


class XendError(RuntimeError):
    """Error class for 'expected errors' when talking to xend.