]> git.droids-corp.org - protos/xbee-avr.git/blobdiff - xbee_atcmd.h
fix compilation with latest aversive
[protos/xbee-avr.git] / xbee_atcmd.h
index 327df8b8f3a0f33d749a9e0b6fbddba45a3342ab..84f222328f2eb2dfd767dbc36b22a8037dd4a96a 100644 (file)
 
 /* list of xbee at commands */
 struct xbee_atcmd {
-       prog_char *name;
-       prog_char *desc;
+       PGM_P name;
+       PGM_P desc;
        unsigned int flags;
-       prog_char *help;
+       PGM_P help;
 };
 
-struct xbee_atcmd_pgm {
-       prog_char *name;
-       prog_char *desc;
-       unsigned int flags;
-       prog_char *help;
-} PROGMEM;
-
-extern struct xbee_atcmd_pgm xbee_atcmd_list[];
+extern const struct xbee_atcmd PROGMEM xbee_atcmd_list[];
 
-struct xbee_atcmd_pgm *xbee_atcmd_lookup_name(const char *atcmd_str);
-struct xbee_atcmd_pgm *xbee_atcmd_lookup_desc(const char *desc);
+const struct xbee_atcmd *xbee_atcmd_lookup_name(const char *atcmd_str);
+const struct xbee_atcmd *xbee_atcmd_lookup_desc(const char *desc);
 
 #endif /* _xBEE_ATCMD_H_ */